CheckboxColors

@Immutable
class CheckboxColors(val checkedCheckmarkColor: Color, val uncheckedCheckmarkColor: Color, val checkedBoxColor: Color, val uncheckedBoxColor: Color, val disabledCheckedBoxColor: Color, val disabledUncheckedBoxColor: Color, val disabledIndeterminateBoxColor: Color, val checkedBorderColor: Color, val uncheckedBorderColor: Color, val disabledBorderColor: Color, val disabledUncheckedBorderColor: Color, val disabledIndeterminateBorderColor: 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.

Constructors

Link copied to clipboard
constructor(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.

Properties

Link copied to clipboard
Link copied to clipboard
val checkedBoxColor: Color
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
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”

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int