🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

SelectableChipColors

Represents the container and content colors used in a selectable chip in different states.

Source set: Common
public class SelectableChipColors(
    public val containerColor: Color,
    public val labelColor: Color,
    public val leadingIconColor: Color,
    public val trailingIconColor: Color,
    public val disabledContainerColor: Color,
    public val disabledLabelColor: Color,
    public val disabledLeadingIconColor: Color,
    public val disabledTrailingIconColor: Color,
    public val selectedContainerColor: Color,
    public val disabledSelectedContainerColor: Color,
    public val selectedLabelColor: Color,
    public val selectedLeadingIconColor: Color,
    public val selectedTrailingIconColor: Color,
    // TODO(b/113855296): Support other states: hover, focus, drag
)

Represents the container and content colors used in a selectable chip in different states.

Parameters

containerColor the container color of this chip when enabled
labelColor the label color of this chip when enabled
leadingIconColor the color of this chip's start icon when enabled
trailingIconColor the color of this chip's end icon when enabled
disabledContainerColor the container color of this chip when not enabled
disabledLabelColor the label color of this chip when not enabled
disabledLeadingIconColor the color of this chip's start icon when not enabled
disabledTrailingIconColor the color of this chip's end icon when not enabled
selectedContainerColor the container color of this chip when selected and enabled
disabledSelectedContainerColor the container color of this chip when selected and not enabled
selectedLabelColor the label color of this chip when selected and enabled
selectedLeadingIconColor the color of this chip's start icon when selected and enabled
selectedTrailingIconColor the color of this chip's end icon when selected and enabled

Functions

copy

Source set: Common
public fun copy(
        containerColor: Color = this.containerColor,
        labelColor: Color = this.labelColor,
        leadingIconColor: Color = this.leadingIconColor,
        trailingIconColor: Color = this.trailingIconColor,
        disabledContainerColor: Color = this.disabledContainerColor,
        disabledLabelColor: Color = this.disabledLabelColor,
        disabledLeadingIconColor: Color = this.disabledLeadingIconColor,
        disabledTrailingIconColor: Color = this.disabledTrailingIconColor,
        selectedContainerColor: Color = this.selectedContainerColor,
        disabledSelectedContainerColor: Color = this.disabledSelectedContainerColor,
        selectedLabelColor: Color = this.selectedLabelColor,
        selectedLeadingIconColor: Color = this.selectedLeadingIconColor,
        selectedTrailingIconColor: Color = this.selectedTrailingIconColor,
    ): SelectableChipColors

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”

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

Content updated: