invoke

operator fun invoke(textColor: KalugaColor, backgroundStyle: KalugaBackgroundStyle): ButtonStateStyle.TextOnly

Deprecated

Use ButtonStateStyle.textOnly

Replace with

ButtonStateStyle.textOnly {
            this.textColor = textColor
            this.backgroundStyle = backgroundStyle
        }

Creates a ButtonStateStyle.TextOnly for a given textColor and backgroundStyle

Return

a ButtonStateStyle.TextOnly

Parameters


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)
        }

Creates a ButtonStateStyle.TextOnly for a given textColor and backgroundColor and shape

Return

a ButtonStateStyle.TextOnly

Parameters