ChipColors
class ChipColors
Represents the background and content colors used in Chip.
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 |
|---|
ChipColors(Constructor for the |
ChipColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)Constructor for the |
ChipColors(Constructor for the |
ChipColors(Constructor for the |
Public functions |
|
|---|---|
ColorBuilders.ColorProp |
The background color to be used on |
ColorBuilders.ColorProp |
The main text color to be used on |
ColorBuilders.ColorProp |
The icon color to be used on |
ColorBuilders.ColorProp |
The label text color to be used on |
java-static ChipColors |
primaryChipColors(colors: Colors)Returns a |
java-static ChipColors |
secondaryChipColors(colors: Colors)Returns a |
Public constructors
ChipColors
ChipColors(
backgroundColor: ColorBuilders.ColorProp,
contentColor: ColorBuilders.ColorProp
)
Constructor for the ChipColors object.
| Parameters | |
|---|---|
backgroundColor: ColorBuilders.ColorProp |
The background color to be used for |
contentColor: ColorBuilders.ColorProp |
The content color to be used for all items inside |
ChipColors
ChipColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)
Constructor for the ChipColors object.
ChipColors
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 |
iconColor: ColorBuilders.ColorProp |
The color to be used for an icon in |
contentColor: ColorBuilders.ColorProp |
The text color to be used for a main text in |
secondaryContentColor: ColorBuilders.ColorProp |
The text color to be used for a label text in |
ChipColors
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 |
iconColor: @ColorInt Int |
The color to be used for an icon in |
contentColor: @ColorInt Int |
The text color to be used for a main text in |
secondaryContentColor: @ColorInt Int |
The text color to be used for a label text in |
Public functions
getBackgroundColor
fun getBackgroundColor(): ColorBuilders.ColorProp
The background color to be used on Chip.
getContentColor
fun getContentColor(): ColorBuilders.ColorProp
The main text color to be used on Chip.
getIconColor
fun getIconColor(): ColorBuilders.ColorProp
The icon color to be used on Chip.
getSecondaryContentColor
fun getSecondaryContentColor(): ColorBuilders.ColorProp
The label text color to be used on Chip.
primaryChipColors
java-static fun primaryChipColors(colors: Colors): ChipColors
Returns a ChipColors object, using the current Primary colors from the given Colors.
secondaryChipColors
java-static fun secondaryChipColors(colors: Colors): ChipColors
Returns a ChipColors object, using the current Surface colors from the given Colors.