setBackground
open fun setBackground(defaultColor: KalugaColor, pressedColor: KalugaColor = defaultColor, disabledColor: KalugaColor = defaultColor, shape: KalugaBackgroundStyle.Shape = KalugaBackgroundStyle.Shape.Rectangle())
Sets backgroundStyle to a KalugaBackgroundStyle with KalugaBackgroundStyle.FillStyle.Solid based on a KalugaColor and shape
Parameters
defaultColor
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle by default
pressedColor
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle when pressed
disabledColor
the KalugaColor to set as the KalugaBackgroundStyle.FillStyle.Solid.color of the KalugaBackgroundStyle when disabled
shape
the KalugaBackgroundStyle.Shape of the KalugaBackgroundStyle