setTextStyle

open fun setTextStyle(textStyle: KalugaTextStyle, pressedColor: KalugaColor = textStyle.color, disabledColor: KalugaColor = textStyle.color)

Sets font, textSize, and textAlignment according to a KalugaTextStyle and ButtonStateStyle.WithText.textColor for all states

Parameters

textStyle

the KalugaTextStyle to configure the button with

pressedColor

the KalugaColor to apply to pressedStyle

disabledColor

the KalugaColor to apply to disabledColor