ChipColors

Added in 1.1.0
Deprecated in 1.2.0

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 . 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 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 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.1.0
Deprecated in 1.2.0
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

Added in 1.1.0
Deprecated in 1.2.0
ChipColors(backgroundColor: @ColorInt Int, contentColor: @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.

contentColor: @ColorInt Int

The content color to be used for all items inside a chip Tiles component. Should be in ARGB format.

ChipColors

Added in 1.1.0
Deprecated in 1.2.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 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

Added in 1.1.0
Deprecated in 1.2.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 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

getBackgroundColor

Added in 1.1.0
Deprecated in 1.2.0
fun getBackgroundColor(): ColorBuilders.ColorProp

The background color to be used on a chip Tiles components.

getContentColor

Added in 1.1.0
Deprecated in 1.2.0
fun getContentColor(): ColorBuilders.ColorProp

The main text color to be used on a chip Tiles components.

getIconColor

Added in 1.1.0
Deprecated in 1.2.0
fun getIconColor(): ColorBuilders.ColorProp

The icon color to be used on a chip Tiles components.

getSecondaryContentColor

Added in 1.1.0
Deprecated in 1.2.0
fun getSecondaryContentColor(): ColorBuilders.ColorProp

The label text color to be used on a chip Tiles components.

primaryChipColors

Added in 1.1.0
Deprecated in 1.2.0
java-static fun primaryChipColors(colors: Colors): ChipColors

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

secondaryChipColors

Added in 1.1.0
Deprecated in 1.2.0
java-static fun secondaryChipColors(colors: Colors): ChipColors

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