Properties

Link copied to clipboard

the ButtonStateStyle.ImageOnly that the button is in by default

Link copied to clipboard

the ButtonStateStyle.ImageOnly that the button is in when disabled. If null defaultStyle will be used.

Link copied to clipboard
open override var imageSize: ImageSize
Link copied to clipboard
open override var padding: Padding

Configured the Padding of the content of the button

Link copied to clipboard

the ButtonStateStyle.ImageOnly that the button is in when pressed. If null defaultStyle will be used.

Functions

Link copied to clipboard
open override fun defaultStyle(dsl: ButtonStateStyleDSL.ImageOnly.() -> Unit)

Sets defaultStyle using the creation using a ButtonStateStyleDSL.ImageOnly The ButtonStateStyleDSL.ImageOnly will be preconfigured with the layout of the previous defaultStyle

Link copied to clipboard
open override fun disabledStyle(dsl: ButtonStateStyleDSL.ImageOnly.() -> Unit)

Sets disabledStyle using the creation using a ButtonStateStyleDSL.ImageOnly The ButtonStateStyleDSL.ImageOnly will be preconfigured with the layout of the previous disabledStyle or defaultStyle if null

Link copied to clipboard
open override fun pressedStyle(dsl: ButtonStateStyleDSL.ImageOnly.() -> Unit)

Sets pressedStyle using the creation using a ButtonStateStyleDSL.ImageOnly The ButtonStateStyleDSL.ImageOnly will be preconfigured with the layout of the previous pressedStyle or defaultStyle if null

Link copied to clipboard
open fun setBackground(defaultColor: KalugaColor, pressedColor: KalugaColor = defaultColor, disabledColor: KalugaColor = defaultColor, shape: KalugaBackgroundStyle.Shape = KalugaBackgroundStyle.Shape.Rectangle())
Link copied to clipboard
open fun setImage(image: KalugaImage)
open fun setImage(image: TintedImage, pressedTint: KalugaColor = image.tint, disabledTint: KalugaColor = image.tint)
open fun setImage(image: KalugaImage, defaultTint: KalugaColor, pressedTint: KalugaColor = defaultTint, disabledTint: KalugaColor = defaultTint)