WideNavigationRailColors
-
Cmn
class WideNavigationRailColors
Represents the colors of the various elements of a wide navigation rail.
Summary
Public constructors |
|
|---|---|
@ExperimentalMaterial3ExpressiveApiThis function is deprecated. Deprecated in favor of constructor with modalContentColor parameter |
Cmn
|
|
Cmn
|
Public functions |
||
|---|---|---|
WideNavigationRailColors |
copy(Returns a copy of this NavigationRailColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Public properties |
||
|---|---|---|
Color |
the color used for the background of a non-modal wide navigation rail. |
Cmn
|
Color |
the preferred color for content inside a wide navigation rail. |
Cmn
|
Color |
the color used for the background of a modal wide navigation rail. |
Cmn
|
Color |
the preferred color for content inside a modal wide navigation rail. |
Cmn
|
Color |
the color used for the scrim overlay for background content of a modal wide navigation rail |
Cmn
|
Public constructors
WideNavigationRailColors
@ExperimentalMaterial3ExpressiveApiWideNavigationRailColors(
containerColor: Color,
contentColor: Color,
modalContainerColor: Color,
modalScrimColor: Color
)
WideNavigationRailColors
WideNavigationRailColors(
containerColor: Color,
contentColor: Color,
modalContainerColor: Color,
modalScrimColor: Color,
modalContentColor: Color
)
| Parameters | |
|---|---|
containerColor: Color |
the color used for the background of a non-modal wide navigation rail. Use |
contentColor: Color |
the preferred color for content inside a wide navigation rail. Defaults to either the matching content color for |
modalContainerColor: Color |
the color used for the background of a modal wide navigation rail. Use |
modalScrimColor: Color |
the color used for the scrim overlay for background content of a modal wide navigation rail |
modalContentColor: Color |
the preferred color for content inside a modal wide navigation rail. Defaults to either the matching content color for |
Public 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”.
Public properties
containerColor
val containerColor: Color
the color used for the background of a non-modal wide navigation rail. Use Color.Transparent to have no color
contentColor
val contentColor: Color
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
val modalContainerColor: Color
the color used for the background of a modal wide navigation rail. Use Color.Transparent to have no color
modalContentColor
val modalContentColor: Color
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
modalScrimColor
val modalScrimColor: Color
the color used for the scrim overlay for background content of a modal wide navigation rail