TextOnly
Properties
the ButtonStateStyle.TextOnly that the button is in by default
the ButtonStateStyle.TextOnly that the button is in when disabled. If null defaultStyle will be used.
the KalugaFont that the text is in
the ButtonStateStyle.TextOnly that the button is in when pressed. If null defaultStyle will be used.
the KalugaTextAlignment of the text
Functions
Sets defaultStyle using the creation using a ButtonStateStyleDSL.TextOnly The ButtonStateStyleDSL.TextOnly will be preconfigured with the layout of the previous defaultStyle
Sets disabledStyle using the creation using a ButtonStateStyleDSL.TextOnly The ButtonStateStyleDSL.TextOnly will be preconfigured with the layout of the previous disabledStyle or defaultStyle if null
Sets pressedStyle using the creation using a ButtonStateStyleDSL.TextOnly The ButtonStateStyleDSL.TextOnly will be preconfigured with the layout of the previous pressedStyle or defaultStyle if null
Sets backgroundStyle to a KalugaBackgroundStyle with KalugaBackgroundStyle.FillStyle.Solid based on a KalugaColor and shape
Sets font, textSize, and textAlignment according to a KalugaTextStyle and ButtonStateStyle.WithText.textColor for all states