KalugaButtonStyle

constructor(textStyle: KalugaTextStyle, textAlignment: KalugaTextAlignment = KalugaTextAlignment.CENTER, backgroundColor: KalugaColor = DefaultColors.clear, pressedBackgroundColor: KalugaColor = backgroundColor, disabledBackgroundColor: KalugaColor = backgroundColor, shape: KalugaBackgroundStyle.Shape = KalugaBackgroundStyle.Shape.Rectangle())

Constructor

Parameters

textStyle

the KalugaTextStyle of the button text

textAlignment

the KalugaTextAlignment of the text of the button

backgroundColor

the KalugaColor of the background of the button when not in a special state

pressedBackgroundColor

the KalugaColor of the background of the button when pressed

disabledBackgroundColor

the KalugaColor of the background of the button when disabled

shape

the KalugaBackgroundStyle.Shape of the background of the button


constructor(font: KalugaFont, textSize: Float, textAlignment: KalugaTextAlignment = KalugaTextAlignment.CENTER, defaultStyle: ButtonStateStyle, pressedStyle: ButtonStateStyle = defaultStyle, disabledStyle: ButtonStateStyle = defaultStyle)