ListItemColors


Represents the container and content colors used in a list item in different states.

Summary

Public constructors

ListItemColors(
    containerColor: Color,
    headlineColor: Color,
    leadingIconColor: Color,
    overlineColor: Color,
    supportingTextColor: Color,
    trailingIconColor: Color,
    disabledHeadlineColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color
)

create an instance with arbitrary colors.

Cmn

Public properties

Color

the container color of this list item when enabled.

Cmn
Color

the content color of this list item when not enabled.

Cmn
Color

the color of this list item's leading content when not enabled.

Cmn
Color

the color of this list item's trailing content when not enabled.

Cmn
Color

the headline text content color of this list item when enabled.

Cmn
Color

the color of this list item's leading content when enabled.

Cmn
Color

the overline text color of this list item

Cmn
Color

the supporting text color of this list item

Cmn
Color

the color of this list item's trailing content when enabled.

Cmn

Public constructors

ListItemColors

ListItemColors(
    containerColor: Color,
    headlineColor: Color,
    leadingIconColor: Color,
    overlineColor: Color,
    supportingTextColor: Color,
    trailingIconColor: Color,
    disabledHeadlineColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color
)

create an instance with arbitrary colors. See ListItemDefaults.colors for the default colors used in a ListItem.

Parameters
containerColor: Color

the container color of this list item when enabled.

headlineColor: Color

the headline text content color of this list item when enabled.

leadingIconColor: Color

the color of this list item's leading content when enabled.

overlineColor: Color

the overline text color of this list item

supportingTextColor: Color

the supporting text color of this list item

trailingIconColor: Color

the color of this list item's trailing content when enabled.

disabledHeadlineColor: Color

the content color of this list item when not enabled.

disabledLeadingIconColor: Color

the color of this list item's leading content when not enabled.

disabledTrailingIconColor: Color

the color of this list item's trailing content when not enabled.

Public properties

containerColor

val containerColorColor

the container color of this list item when enabled.

disabledHeadlineColor

val disabledHeadlineColorColor

the content color of this list item when not enabled.

disabledLeadingIconColor

val disabledLeadingIconColorColor

the color of this list item's leading content when not enabled.

disabledTrailingIconColor

val disabledTrailingIconColorColor

the color of this list item's trailing content when not enabled.

headlineColor

val headlineColorColor

the headline text content color of this list item when enabled.

leadingIconColor

val leadingIconColorColor

the color of this list item's leading content when enabled.

overlineColor

val overlineColorColor

the overline text color of this list item

supportingTextColor

val supportingTextColorColor

the supporting text color of this list item

trailingIconColor

val trailingIconColorColor

the color of this list item's trailing content when enabled.