CheckboxColors
-
Cmn
class CheckboxColors
Represents the colors used by the three different sections (checkmark, box, and border) of a Checkbox or TriStateCheckbox in different states.
Summary
Public constructors |
|
|---|---|
This function is deprecated. This constructor is deprecated. |
Cmn
|
CheckboxColors(create an instance with arbitrary colors, see |
Cmn
|
Public functions |
||
|---|---|---|
CheckboxColors |
copy(Returns a copy of this CheckboxColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Public properties |
||
|---|---|---|
Color |
color that will be used for the border when checked |
Cmn
|
Color |
the color that will be used for the box when checked |
Cmn
|
Color |
color that will be used for the checkmark when checked |
Cmn
|
Color |
color that will be used for the border when disabled and checked |
Cmn
|
Color |
color that will be used for the box when disabled and checked |
Cmn
|
Color |
color that will be used for the checkmark when disabled |
Cmn
|
Color |
color that will be used for the border when disabled and in an |
Cmn
|
Color |
color that will be used for the box and border in a |
Cmn
|
Color |
color that will be used for the border when disabled and unchecked |
Cmn
|
Color |
color that will be used for the box when disabled and unchecked |
Cmn
|
Color |
color that will be used for the border when unchecked |
Cmn
|
Color |
color that will be used for the box when unchecked |
Cmn
|
Color |
color that will be used for the checkmark when unchecked |
Cmn
|
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
)
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,
disabledCheckmarkColor: 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 |
disabledCheckmarkColor: Color |
color that will be used for the checkmark when disabled |
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,
disabledCheckmarkColor: Color = this.disabledCheckmarkColor
): 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
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
disabledCheckmarkColor
val disabledCheckmarkColor: Color
color that will be used for the checkmark when disabled
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
uncheckedCheckmarkColor
val uncheckedCheckmarkColor: Color
color that will be used for the checkmark when unchecked