ChipColors
class ChipColors
Represents the background and content colors used in a chip Tiles component.
See PRIMARY_COLORS for the default colors used in a primary styled Chip. See SECONDARY_COLORS for the default colors used in a secondary styled Chip.
Summary
Public constructors |
|---|
Constructor for the |
Constructor for the |
Constructor for the |
Constructor for the |
Public functions |
|
|---|---|
ColorBuilders.ColorProp |
The background color to be used on a chip Tiles components. |
ColorBuilders.ColorProp |
The main text color to be used on a chip Tiles components. |
ColorBuilders.ColorProp |
The icon color to be used on a chip Tiles components. |
ColorBuilders.ColorProp |
The label text color to be used on a chip Tiles components. |
java-static ChipColors |
Returns a |
java-static ChipColors |
Returns a |
Public constructors
ChipColors(
backgroundColor: ColorBuilders.ColorProp,
contentColor: ColorBuilders.ColorProp
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
backgroundColor: ColorBuilders.ColorProp |
The background color to be used for a chip Tiles component. |
contentColor: ColorBuilders.ColorProp |
The content color to be used for all items inside a chip Tiles component. |
ChipColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)
Constructor for the ChipColors object.
ChipColors(
backgroundColor: ColorBuilders.ColorProp,
iconColor: ColorBuilders.ColorProp,
contentColor: ColorBuilders.ColorProp,
secondaryContentColor: ColorBuilders.ColorProp
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
backgroundColor: ColorBuilders.ColorProp |
The background color to be used for a chip Tiles component. |
iconColor: ColorBuilders.ColorProp |
The color to be used for an icon in a chip Tiles component. |
contentColor: ColorBuilders.ColorProp |
The text color to be used for a main text in a chip Tiles component. |
secondaryContentColor: ColorBuilders.ColorProp |
The text color to be used for a label text in a chip Tiles component. |
ChipColors(
backgroundColor: @ColorInt Int,
iconColor: @ColorInt Int,
contentColor: @ColorInt Int,
secondaryContentColor: @ColorInt Int
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
backgroundColor: @ColorInt Int |
The background color to be used for a chip Tiles component. Should be in ARGB format. |
iconColor: @ColorInt Int |
The color to be used for an icon in a chip Tiles component. Should be in ARGB format. |
contentColor: @ColorInt Int |
The text color to be used for a main text in a chip Tiles component. Should be in ARGB format. |
secondaryContentColor: @ColorInt Int |
The text color to be used for a label text in a chip Tiles component. Should be in ARGB format. |
Public functions
fungetBackgroundColor(): ColorBuilders.ColorProp
The background color to be used on a chip Tiles components.
fungetContentColor(): ColorBuilders.ColorProp
The main text color to be used on a chip Tiles components.
fungetSecondaryContentColor(): ColorBuilders.ColorProp
The label text color to be used on a chip Tiles components.
java-static funprimaryChipColors(colors: Colors): ChipColors
Returns a ChipColors object, using the current Primary colors from the given Colors.
java-static funsecondaryChipColors(colors: Colors): ChipColors
Returns a ChipColors object, using the current Surface colors from the given Colors.