class ChipColors


Represents the background and content colors used in Chip.

See PRIMARY_COLORS for the default colors used in a primary styled . See SECONDARY_COLORS for the default colors used in a secondary styled Chip.

Summary

Public constructors

ChipColors(
    backgroundColor: ColorBuilders.ColorProp,
    contentColor: ColorBuilders.ColorProp
)

Constructor for the ChipColors object.

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.

ChipColors(
    backgroundColor: @ColorInt Int,
    iconColor: @ColorInt Int,
    contentColor: @ColorInt Int,
    secondaryContentColor: @ColorInt Int
)

Constructor for the ChipColors object.

Public functions

ColorBuilders.ColorProp

The background color to be used on Chip.

ColorBuilders.ColorProp

The main text color to be used on Chip.

ColorBuilders.ColorProp

The icon color to be used on Chip.

ColorBuilders.ColorProp

The label text color to be used on Chip.

java-static ChipColors

Returns a ChipColors object, using the current Primary colors from the given .

java-static ChipColors

Returns a ChipColors object, using the current Surface colors from the given .

Public constructors

ChipColors

Added in 1.0.0
ChipColors(
    backgroundColor: ColorBuilders.ColorProp,
    contentColor: ColorBuilders.ColorProp
)

Constructor for the ChipColors object.

Parameters
backgroundColor: ColorBuilders.ColorProp

The background color to be used for Chip.

contentColor: ColorBuilders.ColorProp

The content color to be used for all items inside Chip.

ChipColors

Added in 1.0.0
ChipColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)

Constructor for the ChipColors object.

Parameters
backgroundColor: @ColorInt Int

The background color to be used for Chip. Should be in ARGB format.

contentColor: @ColorInt Int

The content color to be used for all items inside Chip Should be in ARGB format.

ChipColors

Added in 1.0.0
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 Chip.

iconColor: ColorBuilders.ColorProp

The color to be used for an icon in Chip.

contentColor: ColorBuilders.ColorProp

The text color to be used for a main text in Chip.

secondaryContentColor: ColorBuilders.ColorProp

The text color to be used for a label text in Chip.

ChipColors

Added in 1.0.0
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 Chip. Should be in ARGB format.

iconColor: @ColorInt Int

The color to be used for an icon in Chip. Should be in ARGB format.

contentColor: @ColorInt Int

The text color to be used for a main text in Chip. Should be in ARGB format.

secondaryContentColor: @ColorInt Int

The text color to be used for a label text in Chip Should be in ARGB format.

Public functions

getBackgroundColor

Added in 1.0.0
fun getBackgroundColor(): ColorBuilders.ColorProp

The background color to be used on Chip.

getContentColor

Added in 1.0.0
fun getContentColor(): ColorBuilders.ColorProp

The main text color to be used on Chip.

getIconColor

Added in 1.0.0
fun getIconColor(): ColorBuilders.ColorProp

The icon color to be used on Chip.

getSecondaryContentColor

Added in 1.0.0
fun getSecondaryContentColor(): ColorBuilders.ColorProp

The label text color to be used on Chip.

primaryChipColors

Added in 1.0.0
java-static fun primaryChipColors(colors: Colors): ChipColors

Returns a ChipColors object, using the current Primary colors from the given .

secondaryChipColors

Added in 1.0.0
java-static fun secondaryChipColors(colors: Colors): ChipColors

Returns a ChipColors object, using the current Surface colors from the given .