setImage

open fun setImage(image: KalugaImage)

Sets the ButtonStateStyle.WithImage.image to a ButtonImage.Image for all states

Parameters

image

the KalugaImage to set as the image


open fun setImage(image: TintedImage, pressedTint: KalugaColor = image.tint, disabledTint: KalugaColor = image.tint)

Sets the ButtonStateStyle.WithImage.image to a ButtonImage.Tinted for all states

Parameters

image

the TintedImage to set as the image

pressedTint

the KalugaColor to set the image as when pressed

disabledTint

the KalugaColor to set the image as when disabled


open fun setImage(image: KalugaImage, defaultTint: KalugaColor, pressedTint: KalugaColor = defaultTint, disabledTint: KalugaColor = defaultTint)

Sets the ButtonStateStyle.WithImage.image to a ButtonImage.Tinted for all states

Parameters

image

the KalugaImage to tint

defaultTint

the KalugaColor to set the image as by default

pressedTint

the KalugaColor to set the image as when pressed

disabledTint

the KalugaColor to set the image as when disabled