Source set: Common
public class CheckboxColors public constructor(
public val checkedCheckmarkColor: Color,
public val uncheckedCheckmarkColor: Color,
public val checkedBoxColor: Color,
public val uncheckedBoxColor: Color,
public val disabledCheckedBoxColor: Color,
public val disabledUncheckedBoxColor: Color,
public val disabledIndeterminateBoxColor: Color,
public val checkedBorderColor: Color,
public val uncheckedBorderColor: Color,
public val disabledBorderColor: Color,
public val disabledUncheckedBorderColor: Color,
public val disabledIndeterminateBorderColor: Color,
public val disabledCheckmarkColor: Color,
)
Represents the colors used by the three different sections (checkmark, box, and border) of a Checkbox or TriStateCheckbox in different states.
Parameters
| checkedCheckmarkColor | color that will be used for the checkmark when checked |
| uncheckedCheckmarkColor | color that will be used for the checkmark when unchecked |
| checkedBoxColor | the color that will be used for the box when checked |
| uncheckedBoxColor | color that will be used for the box when unchecked |
| disabledCheckedBoxColor | color that will be used for the box when disabled and checked |
| disabledUncheckedBoxColor | color that will be used for the box when disabled and unchecked |
| disabledIndeterminateBoxColor | color that will be used for the box and border in a TriStateCheckbox when disabled AND in an ToggleableState.Indeterminate state. |
| checkedBorderColor | color that will be used for the border when checked |
| uncheckedBorderColor | color that will be used for the border when unchecked |
| disabledBorderColor | color that will be used for the border when disabled and checked |
| disabledUncheckedBorderColor | color that will be used for the border when disabled and unchecked |
| disabledIndeterminateBorderColor | color that will be used for the border when disabled and in an ToggleableState.Indeterminate state. |
| disabledCheckmarkColor | color that will be used for the checkmark when disabled |
Functions
copy
Source set: Common
@Deprecated(
message =
"This function is deprecated. Use 'copy' that includes 'disabledCheckmarkColor' instead",
level = DeprecationLevel.HIDDEN,
)
public 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ā
copy
Source set: Common
public 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ā
equals
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int