CheckboxColors
class CheckboxColors
Represents the colors used by the three different sections (checkmark, box, and border) of a Checkbox or TriStateCheckbox in different states.
See CheckboxDefaults.colors for the default implementation that follows Material specifications.
Summary
Public constructors |
|---|
CheckboxColors(create an instance with arbitrary colors, see |
Public functions |
|
|---|---|
CheckboxColors |
copy(Returns a copy of this CheckboxColors, optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
Public properties |
|
|---|---|
Color |
color that will be used for the border when checked |
Color |
the color that will be used for the box when checked |
Color |
color that will be used for the checkmark when checked |
Color |
color that will be used for the border when disabled and checked |
Color |
color that will be used for the box when disabled and checked |
Color |
color that will be used for the border when disabled and in an |
Color |
color that will be used for the box and border in a |
Color |
color that will be used for the border when disabled and unchecked |
Color |
color that will be used for the box when disabled and unchecked |
Color |
color that will be used for the border when unchecked |
Color |
color that will be used for the box when unchecked |
Color |
color that will be used for the checkmark when unchecked |
Public constructors
CheckboxColors
CheckboxColors(
checkedCheckmarkColor: Color,
uncheckedCheckmarkColor: Color,
checkedBoxColor: Color,
uncheckedBoxColor: Color,
disabledCheckedBoxColor: Color,
disabledUncheckedBoxColor: Color,
disabledIndeterminateBoxColor: Color,
checkedBorderColor: Color,
uncheckedBorderColor: Color,
disabledBorderColor: Color,
disabledUncheckedBorderColor: Color,
disabledIndeterminateBorderColor: Color
)
create an instance with arbitrary colors, see CheckboxDefaults.colors for the default implementation that follows Material specifications.
| Parameters | |
|---|---|
checkedCheckmarkColor: Color |
color that will be used for the checkmark when checked |
uncheckedCheckmarkColor: Color |
color that will be used for the checkmark when unchecked |
checkedBoxColor: Color |
the color that will be used for the box when checked |
uncheckedBoxColor: Color |
color that will be used for the box when unchecked |
disabledCheckedBoxColor: Color |
color that will be used for the box when disabled and checked |
disabledUncheckedBoxColor: Color |
color that will be used for the box when disabled and unchecked |
disabledIndeterminateBoxColor: Color |
color that will be used for the box and border in a |
checkedBorderColor: Color |
color that will be used for the border when checked |
uncheckedBorderColor: Color |
color that will be used for the border when unchecked |
disabledBorderColor: Color |
color that will be used for the border when disabled and checked |
disabledUncheckedBorderColor: Color |
color that will be used for the border when disabled and unchecked |
disabledIndeterminateBorderColor: Color |
color that will be used for the border when disabled and in an |
Public functions
copy
fun copy(
checkedCheckmarkColor: Color = this.checkedCheckmarkColor,
uncheckedCheckmarkColor: Color = this.uncheckedCheckmarkColor,
checkedBoxColor: Color = this.checkedBoxColor,
uncheckedBoxColor: Color = this.uncheckedBoxColor,
disabledCheckedBoxColor: Color = this.disabledCheckedBoxColor,
disabledUncheckedBoxColor: Color = this.disabledUncheckedBoxColor,
disabledIndeterminateBoxColor: Color = this.disabledIndeterminateBoxColor,
checkedBorderColor: Color = this.checkedBorderColor,
uncheckedBorderColor: Color = this.uncheckedBorderColor,
disabledBorderColor: Color = this.disabledBorderColor,
disabledUncheckedBorderColor: Color = this.disabledUncheckedBorderColor,
disabledIndeterminateBorderColor: Color = this.disabledIndeterminateBorderColor
): CheckboxColors
Returns a copy of this CheckboxColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Public properties
checkedBorderColor
val checkedBorderColor: Color
color that will be used for the border when checked
checkedBoxColor
val checkedBoxColor: Color
the color that will be used for the box when checked
checkedCheckmarkColor
val checkedCheckmarkColor: Color
color that will be used for the checkmark when checked
disabledBorderColor
val disabledBorderColor: Color
color that will be used for the border when disabled and checked
disabledCheckedBoxColor
val disabledCheckedBoxColor: Color
color that will be used for the box when disabled and checked
disabledIndeterminateBorderColor
val disabledIndeterminateBorderColor: Color
color that will be used for the border when disabled and in an ToggleableState.Indeterminate state.
disabledIndeterminateBoxColor
val disabledIndeterminateBoxColor: Color
color that will be used for the box and border in a TriStateCheckbox when disabled AND in an ToggleableState.Indeterminate state.
disabledUncheckedBorderColor
val disabledUncheckedBorderColor: Color
color that will be used for the border when disabled and unchecked
disabledUncheckedBoxColor
val disabledUncheckedBoxColor: Color
color that will be used for the box when disabled and unchecked
uncheckedBorderColor
val uncheckedBorderColor: Color
color that will be used for the border when unchecked
uncheckedBoxColor
val uncheckedBoxColor: Color
color that will be used for the box when unchecked
uncheckedCheckmarkColor
val uncheckedCheckmarkColor: Color
color that will be used for the checkmark when unchecked