TableColors

data class TableColors(val headerContainerColor: Color, val headerContentColor: Color, val rowContainerColor: Color, val rowSelectedContainerColor: Color, val stripedRowContainerColor: Color, val groupContainerColor: Color, val footerContainerColor: Color, val footerContentColor: Color, val rowBlockContainerColor: Color = Color.Unspecified, val rowSelectedIndicatorColor: Color = Color.Unspecified, val dividerColor: Color = Color.Unspecified, val pinnedDividerColor: Color = Color.Unspecified, val borderColor: Color = Color.Unspecified, val focusIndicatorColor: Color = Color.Unspecified, val hoverColor: Color = Color.Unspecified, val groupContentColor: Color = Color.Unspecified, val stickyGroupContainerColor: Color = Color.Unspecified, val headerSortIconActiveColor: Color = Color.Unspecified, val headerFocusIndicatorColor: Color = Color.Unspecified)

Color palette used by the table header and rows.

Constructors

Link copied to clipboard
constructor(headerContainerColor: Color, headerContentColor: Color, rowContainerColor: Color, rowSelectedContainerColor: Color, stripedRowContainerColor: Color, groupContainerColor: Color, footerContainerColor: Color, footerContentColor: Color, rowBlockContainerColor: Color = Color.Unspecified, rowSelectedIndicatorColor: Color = Color.Unspecified, dividerColor: Color = Color.Unspecified, pinnedDividerColor: Color = Color.Unspecified, borderColor: Color = Color.Unspecified, focusIndicatorColor: Color = Color.Unspecified, hoverColor: Color = Color.Unspecified, groupContentColor: Color = Color.Unspecified, stickyGroupContainerColor: Color = Color.Unspecified, headerSortIconActiveColor: Color = Color.Unspecified, headerFocusIndicatorColor: Color = Color.Unspecified)

Properties

Link copied to clipboard

Outer border of the table. Color.Unspecified resolves to outlineVariant.

Link copied to clipboard

Row, column, header and footer dividers. Color.Unspecified resolves to outlineVariant.

Link copied to clipboard

Keyboard focus ring of a cell or header. Color.Unspecified resolves to primary.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Content of a group header. Color.Unspecified resolves to the content color for groupContainerColor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Keyboard focus ring of a header cell. Color.Unspecified resolves to focusIndicatorColor, or to headerContentColor when that falls under 3:1 contrast with headerContainerColor.

Link copied to clipboard

Sort icon of a sorted column. Color.Unspecified resolves to primary, or to headerContentColor when primary falls under 3:1 contrast with headerContainerColor.

Link copied to clipboard

State layer shown on hover and press of a row; the ripple applies its own alpha. Color.Unspecified resolves to onSurface.

Link copied to clipboard

Divider at the edge of the pinned columns. Color.Unspecified resolves to outlineVariant.

Link copied to clipboard

Container painted behind a row block declared via rowBlocks. Appended with a default — never inserted as a required parameter — so pre-blocks positional constructor calls keep compiling; Color.Unspecified resolves to surfaceContainerHighest at draw.

Link copied to clipboard
Link copied to clipboard

Leading bar drawn on the selected row, so selection is not shown by color alone. Appended with a default like rowBlockContainerColor; Color.Unspecified resolves to primary at draw, and Color.Transparent hides the bar.

Link copied to clipboard

Group header pinned to the top while its rows scroll. Color.Unspecified resolves to groupContainerColor.