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

Summary

Public constructors

ChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconContentColor: Color,
    trailingIconContentColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconContentColor: Color,
    disabledTrailingIconContentColor: Color
)

create an instance with arbitrary colors, see AssistChipDefaults, InputChipDefaults, and SuggestionChipDefaults for the default colors used in the various Chip configurations.

Cmn

Public functions

ChipColors
copy(
    containerColor: Color,
    labelColor: Color,
    leadingIconContentColor: Color,
    trailingIconContentColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconContentColor: Color,
    disabledTrailingIconContentColor: Color
)

Returns a copy of this ChipColors, 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 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 color of this chip's end icon when enabled

Cmn

Public constructors

ChipColors

ChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconContentColor: Color,
    trailingIconContentColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconContentColor: Color,
    disabledTrailingIconContentColor: Color
)

create an instance with arbitrary colors, see AssistChipDefaults, InputChipDefaults, and SuggestionChipDefaults for the default colors used in the various Chip configurations.

Parameters
containerColor: Color

the container color of this chip when enabled

labelColor: Color

the label color of this chip when enabled

leadingIconContentColor: Color

the color of this chip's start icon when enabled

trailingIconContentColor: 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

disabledLeadingIconContentColor: Color

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

disabledTrailingIconContentColor: Color

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

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    labelColor: Color = this.labelColor,
    leadingIconContentColor: Color = this.leadingIconContentColor,
    trailingIconContentColor: Color = this.trailingIconContentColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledLabelColor: Color = this.disabledLabelColor,
    disabledLeadingIconContentColor: Color = this.disabledLeadingIconContentColor,
    disabledTrailingIconContentColor: Color = this.disabledTrailingIconContentColor
): ChipColors

Returns a copy of this ChipColors, 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 containerColorColor

the container color of this chip when enabled

disabledContainerColor

val disabledContainerColorColor

the container color of this chip when not enabled

disabledLabelColor

val disabledLabelColorColor

the label color of this chip when not enabled

disabledLeadingIconContentColor

val disabledLeadingIconContentColorColor

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

disabledTrailingIconContentColor

val disabledTrailingIconContentColorColor

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

labelColor

val labelColorColor

the label color of this chip when enabled

leadingIconContentColor

val leadingIconContentColorColor

the color of this chip's start icon when enabled

trailingIconContentColor

val trailingIconContentColorColor

the color of this chip's end icon when enabled