ChipColors
-
Cmn
class ChipColors
Represents the container and content colors used in a clickable chip in different states.
Summary
Public constructors |
|
|---|---|
ChipColors(create an instance with arbitrary colors, see |
Cmn
|
Public functions |
||
|---|---|---|
ChipColors |
copy(Returns a copy of this ChipColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
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”
Public properties
disabledContainerColor
val disabledContainerColor: Color
the container color of this chip when not enabled
disabledLeadingIconContentColor
val disabledLeadingIconContentColor: Color
the color of this chip's start icon when not enabled
disabledTrailingIconContentColor
val disabledTrailingIconContentColor: Color
the color of this chip's end icon when not enabled
leadingIconContentColor
val leadingIconContentColor: Color
the color of this chip's start icon when enabled
trailingIconContentColor
val trailingIconContentColor: Color
the color of this chip's end icon when enabled