Source set: Common
public class ChipColors(
public val containerColor: Color,
public val labelColor: Color,
public val leadingIconContentColor: Color,
public val trailingIconContentColor: Color,
public val disabledContainerColor: Color,
public val disabledLabelColor: Color,
public val disabledLeadingIconContentColor: Color,
public val disabledTrailingIconContentColor: Color,
// TODO(b/113855296): Support other states: hover, focus, drag
)
Represents the container and content colors used in a clickable chip in different states.
Parameters
| containerColor | the container color of this chip when enabled |
| labelColor | the label color of this chip when enabled |
| leadingIconContentColor | the color of this chip's start icon when enabled |
| trailingIconContentColor | 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 |
| disabledLeadingIconContentColor | the color of this chip's start icon when not enabled |
| disabledTrailingIconContentColor | the color of this chip's end icon when not enabled |
Functions
copy
Source set: Common
public 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
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int