invoke
operator fun invoke(textColor: KalugaColor, backgroundStyle: KalugaBackgroundStyle): ButtonStateStyle.TextOnly
Deprecated
Use ButtonStateStyle.textOnly
Replace with
ButtonStateStyle.textOnly {
this.textColor = textColor
this.backgroundStyle = backgroundStyle
}Content copied to clipboard
Creates a ButtonStateStyle.TextOnly for a given textColor and backgroundStyle
Return
Parameters
textColor
the KalugaColor to set as ButtonStateStyle.TextOnly.textColor
backgroundStyle
operator fun invoke(textColor: KalugaColor, backgroundColor: KalugaColor = DefaultColors.clear, shape: KalugaBackgroundStyle.Shape = KalugaBackgroundStyle.Shape.Rectangle()): ButtonStateStyle.TextOnly
Deprecated
Use ButtonStateStyle.textOnly
Replace with
ButtonStateStyle.textOnly{
this.textColor = textColor
setBackgroundStyle(backgroundColor, shape)
}Content copied to clipboard
Creates a ButtonStateStyle.TextOnly for a given textColor and backgroundColor and shape
Return
Parameters
textColor
the KalugaColor to set as ButtonStateStyle.TextOnly.textColor
backgroundColor
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle
shape
the KalugaBackgroundStyle.Shape of the KalugaBackgroundStyle