androidx.compose.material3

WideNavigationRailColorsSince 1.9

Class

No hand-written docs yet.

Represents the colors of the various elements of a wide navigation rail.

class WideNavigationRailColors(
    containerColor: Color,
    contentColor: Color,
    modalContainerColor: Color,
    modalScrimColor: Color,
    modalContentColor: Color,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a WideNavigationRailColors.

Properties

containerColor

val containerColor: Color

contentColor

val contentColor: Color

modalContainerColor

val modalContainerColor: Color

modalScrimColor

val modalScrimColor: Color

modalContentColor

val modalContentColor: Color

Functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    contentColor: Color = this.contentColor,
    modalContainerColor: Color = this.modalContainerColor,
    modalScrimColor: Color = this.modalScrimColor,
    modalContentColor: Color = this.modalContentColor,
): WideNavigationRailColors

Returns a copy of this NavigationRailColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”.

Library docs

Represents the colors of the various elements of a wide navigation rail.