SelectableChipColors


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

Summary

Public constructors

SelectableChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)

create an instance with arbitrary colors, see FilterChipDefaults.filterChipColors and FilterChipDefaults.elevatedFilterChipColors for the default colors used in FilterChip.

Cmn

Public functions

SelectableChipColors
copy(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)

Returns a copy of this SelectableChipColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

the container color of this chip when enabled

Cmn
Color

the container color of this chip when not enabled

Cmn
Color

the label color of this chip when not enabled

Cmn
Color

the color of this chip's start icon when not enabled

Cmn
Color

the container color of this chip when selected and not enabled

Cmn
Color

the color of this chip's end icon when not enabled

Cmn
Color

the label color of this chip when enabled

Cmn
Color

the color of this chip's start icon when enabled

Cmn
Color

the container color of this chip when selected and enabled

Cmn
Color

the label color of this chip when selected and enabled

Cmn
Color

the color of this chip's start icon when selected and enabled

Cmn
Color

the color of this chip's end icon when selected and enabled

Cmn
Color

the color of this chip's end icon when enabled

Cmn

Public constructors

SelectableChipColors

SelectableChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)

create an instance with arbitrary colors, see FilterChipDefaults.filterChipColors and FilterChipDefaults.elevatedFilterChipColors for the default colors used in FilterChip.

Parameters
containerColor: Color

the container color of this chip when enabled

labelColor: Color

the label color of this chip when enabled

leadingIconColor: Color

the color of this chip's start icon when enabled

trailingIconColor: Color

the color of this chip's end icon when enabled

disabledContainerColor: Color

the container color of this chip when not enabled

disabledLabelColor: Color

the label color of this chip when not enabled

disabledLeadingIconColor: Color

the color of this chip's start icon when not enabled

disabledTrailingIconColor: Color

the color of this chip's end icon when not enabled

selectedContainerColor: Color

the container color of this chip when selected and enabled

disabledSelectedContainerColor: Color

the container color of this chip when selected and not enabled

selectedLabelColor: Color

the label color of this chip when selected and enabled

selectedLeadingIconColor: Color

the color of this chip's start icon when selected and enabled

selectedTrailingIconColor: Color

the color of this chip's end icon when selected and enabled

Public functions

copy

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

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

containerColor

val containerColor: Color

the container color of this chip when enabled

disabledContainerColor

val disabledContainerColor: Color

the container color of this chip when not enabled

disabledLabelColor

val disabledLabelColor: Color

the label color of this chip when not enabled

disabledLeadingIconColor

val disabledLeadingIconColor: Color

the color of this chip's start icon when not enabled

disabledSelectedContainerColor

val disabledSelectedContainerColor: Color

the container color of this chip when selected and not enabled

disabledTrailingIconColor

val disabledTrailingIconColor: Color

the color of this chip's end icon when not enabled

labelColor

val labelColor: Color

the label color of this chip when enabled

leadingIconColor

val leadingIconColor: Color

the color of this chip's start icon when enabled

selectedContainerColor

val selectedContainerColor: Color

the container color of this chip when selected and enabled

selectedLabelColor

val selectedLabelColor: Color

the label color of this chip when selected and enabled

selectedLeadingIconColor

val selectedLeadingIconColor: Color

the color of this chip's start icon when selected and enabled

selectedTrailingIconColor

val selectedTrailingIconColor: Color

the color of this chip's end icon when selected and enabled

trailingIconColor

val trailingIconColor: Color

the color of this chip's end icon when enabled