RadioButtonColors
-
Cmn
class RadioButtonColors
Represents the color used by a RadioButton in different states.
Summary
Public constructors |
|
|---|---|
RadioButtonColors(create an instance with arbitrary colors. |
Cmn
|
Public functions |
||
|---|---|---|
RadioButtonColors |
copy(Returns a copy of this SelectableChipColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Public properties |
||
|---|---|---|
Color |
the color to use for the RadioButton when disabled and selected. |
Cmn
|
Color |
the color to use for the RadioButton when disabled and not selected. |
Cmn
|
Color |
the color to use for the RadioButton when selected and enabled. |
Cmn
|
Color |
the color to use for the RadioButton when unselected and enabled. |
Cmn
|
Public constructors
RadioButtonColors
RadioButtonColors(
selectedColor: Color,
unselectedColor: Color,
disabledSelectedColor: Color,
disabledUnselectedColor: Color
)
create an instance with arbitrary colors. See RadioButtonDefaults.colors for the default implementation that follows Material specifications.
| Parameters | |
|---|---|
selectedColor: Color |
the color to use for the RadioButton when selected and enabled. |
unselectedColor: Color |
the color to use for the RadioButton when unselected and enabled. |
disabledSelectedColor: Color |
the color to use for the RadioButton when disabled and selected. |
disabledUnselectedColor: Color |
the color to use for the RadioButton when disabled and not selected. |
Public functions
copy
fun copy(
selectedColor: Color = this.selectedColor,
unselectedColor: Color = this.unselectedColor,
disabledSelectedColor: Color = this.disabledSelectedColor,
disabledUnselectedColor: Color = this.disabledUnselectedColor
): RadioButtonColors
Returns a copy of this SelectableChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Public properties
disabledSelectedColor
val disabledSelectedColor: Color
the color to use for the RadioButton when disabled and selected.
disabledUnselectedColor
val disabledUnselectedColor: Color
the color to use for the RadioButton when disabled and not selected.
selectedColor
val selectedColor: Color
the color to use for the RadioButton when selected and enabled.
unselectedColor
val unselectedColor: Color
the color to use for the RadioButton when unselected and enabled.