invoke
Deprecated
Use KalugaButtonStyle.TextOnly
Replace with
KalugaButtonStyle.textOnly {
this.font = font
this.textSize = textSize
this.textAlignment = textAlignment
this.defaultStyle = defaultStyle
this.pressedStyle = pressedStyle
this.disabledStyle = disabledStyle
}Creates a KalugaButtonStyle.TextOnly
Parameters
the KalugaFont that the text is in
the size of the text
the KalugaTextAlignment of the text
the ButtonStateStyle.TextOnly that the button is in by default
the ButtonStateStyle.TextOnly that the button is in when pressed
the ButtonStateStyle.TextOnly that the button is in when disabled
Deprecated
Use KalugaButtonStyle.TextOnly
Replace with
KalugaButtonStyle.textOnly {
setTextStyle(textStyle)
this.textAlignment = textAlignment
defaultStyle {
setBackgroundStyle(backgroundColor, shape)
}
pressedStyle {
setBackgroundStyle(pressedBackgroundColor, shape)
}
disabledStyle {
setBackgroundStyle(disabledBackgroundColor, shape)
}
}Creates a KalugaButtonStyle.TextOnly
Return
Parameters
the KalugaTextStyle that the text is in
the KalugaTextAlignment of the text
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle by default
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle when pressed
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle when disabled
the KalugaBackgroundStyle.Shape of the KalugaBackgroundStyle