Class

WideNavigationRailColors

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

Source set: Common
public class WideNavigationRailColors constructor(
    public val containerColor: Color,
    public val contentColor: Color,
    public val modalContainerColor: Color,
    public val modalScrimColor: Color,
    public val modalContentColor: Color,
)

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

Parameters

containerColor the color used for the background of a non-modal wide navigation rail. Use Color.Transparent to have no color
contentColor the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme
modalContainerColor the color used for the background of a modal wide navigation rail. Use Color.Transparent to have no color
modalScrimColor the color used for the scrim overlay for background content of a modal wide navigation rail
modalContentColor the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for modalContainerColor, or to the current LocalContentColor

Functions

copy

Source set: Common
public 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”.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: