ToggleButtonColors
class ToggleButtonColors
Represents the colors used by a ToggleButton in different states.
Summary
Public constructors |
|---|
ToggleButtonColors( |
Public functions |
|
|---|---|
ToggleButtonColors |
copy(Returns a copy of this |
open operator Boolean |
|
open Int |
hashCode() |
Public properties |
|
|---|---|
Color |
the background color when the button is unchecked |
Color |
the background color when the button is checked |
Color |
the content color when the button is checked |
Color |
the content color when the button is unchecked |
Public constructors
ToggleButtonColors
Added in 1.0.0-alpha15
ToggleButtonColors(
backgroundColor: Color,
checkedBackgroundColor: Color,
contentColor: Color,
checkedContentColor: Color
)
Public functions
copy
Added in 1.0.0-alpha15
fun copy(
backgroundColor: Color = this.backgroundColor,
checkedBackgroundColor: Color = this.checkedBackgroundColor,
contentColor: Color = this.contentColor,
checkedContentColor: Color = this.checkedContentColor
): ToggleButtonColors
Returns a copy of this ToggleButtonColors, optionally overriding some of the values.
Public properties
checkedBackgroundColor
val checkedBackgroundColor: Color
the background color when the button is checked