Package-level declarations

Types

Link copied to clipboard
sealed interface ButtonImage

The Image to render for a ButtonStateStyle.WithImage

Link copied to clipboard
sealed interface ButtonStateStyle

The State of a KalugaButtonStyle This manages the looks of a button depending on its state.

Link copied to clipboard
sealed interface ButtonStateStyleDSL

DSL for creating a ButtonStateStyle

Link copied to clipboard

An Error thrown if the size of a list of GradientStyle.ColorPoint is too small

Link copied to clipboard
sealed class GradientStyle

A style for applying to a Gradient color

Link copied to clipboard
sealed interface ImageSize

The size to use for a ButtonImage

Link copied to clipboard
data class KalugaBackgroundStyle(val fillStyle: KalugaBackgroundStyle.FillStyle, val strokeStyle: KalugaBackgroundStyle.StrokeStyle = StrokeStyle.None, val shape: KalugaBackgroundStyle.Shape = Shape.Rectangle())

Style to apply to the background of a view

Link copied to clipboard
Link copied to clipboard

Alignment at which a text is located

Link copied to clipboard
data class KalugaTextStyle(val font: KalugaFont, val color: KalugaColor, val size: Float, val alignment: KalugaTextAlignment = KalugaTextAlignment.START)

The style to apply to a text

Link copied to clipboard
data class Padding(val start: Float = 0.0f, val end: Float = 0.0f, val top: Float = 0.0f, val bottom: Float = 0.0f)

Padding to apply to a com.splendo.kaluga.resources.view.KalugaButton Respects layouts based on reading direction

Properties

Link copied to clipboard

Converts a list of KalugaColor to a list of GradientStyle.ColorPoint spread evenly across the spectrum