object NavigationSuiteDefaults
Contains the default values used by the NavigationSuite.
Properties
val verticalArrangement = Arrangement.Top
Default items vertical arrangement for a navigation suite.
Functions
colors
@Composable
fun colors(
shortNavigationBarContentColor: Color = ShortNavigationBarDefaults.contentColor,
shortNavigationBarContainerColor: Color = ShortNavigationBarDefaults.containerColor,
wideNavigationRailColors: WideNavigationRailColors = WideNavigationRailDefaults.colors(),
navigationBarContainerColor: Color = NavigationBarDefaults.containerColor,
navigationBarContentColor: Color = contentColorFor(navigationBarContainerColor),
navigationRailContainerColor: Color = NavigationRailDefaults.ContainerColor,
navigationRailContentColor: Color = contentColorFor(navigationRailContainerColor),
navigationDrawerContainerColor: Color =
@Suppress("DEPRECATION") DrawerDefaults.containerColor,
navigationDrawerContentColor: Color = contentColorFor(navigationDrawerContainerColor),
): NavigationSuiteColors
Creates a NavigationSuiteColors with the provided colors for the container color, according to the Material specification.
Use Color.Transparent for the navigationContainerColor to have no color. The navigationContentColor will default to either the matching content color for navigation*ContainerColor, or to the current LocalContentColor if navigation*ContainerColor is not a color from the theme.
Parameters
| shortNavigationBarContainerColor | the container color for the ShortNavigationBar |
| shortNavigationBarContentColor | the content color for the ShortNavigationBar |
| wideNavigationRailColors | the WideNavigationRailColors for the WideNavigationRail |
| navigationBarContainerColor | the default container color for the NavigationBar |
| navigationBarContentColor | the default content color for the NavigationBar |
| navigationRailContainerColor | the default container color for the NavigationRail |
| navigationRailContentColor | the default content color for the NavigationRail |
| navigationDrawerContainerColor | the default container color for the PermanentDrawerSheet |
| navigationDrawerContentColor | the default content color for the PermanentDrawerSheet |
colors
@Composable
fun colors(
navigationBarContainerColor: Color = NavigationBarDefaults.containerColor,
navigationBarContentColor: Color = contentColorFor(navigationBarContainerColor),
navigationRailContainerColor: Color = NavigationRailDefaults.ContainerColor,
navigationRailContentColor: Color = contentColorFor(navigationRailContainerColor),
navigationDrawerContainerColor: Color =
@Suppress("DEPRECATION") DrawerDefaults.containerColor,
navigationDrawerContentColor: Color = contentColorFor(navigationDrawerContainerColor),
): NavigationSuiteColors
Creates a NavigationSuiteColors with the provided colors for the container color, according to the Material specification.
Use Color.Transparent for the navigationContainerColor to have no color. The navigationContentColor will default to either the matching content color for navigation*ContainerColor, or to the current LocalContentColor if navigation*ContainerColor is not a color from the theme.
Parameters
| navigationBarContainerColor | the default container color for the NavigationBar |
| navigationBarContentColor | the default content color for the NavigationBar |
| navigationRailContainerColor | the default container color for the NavigationRail |
| navigationRailContentColor | the default content color for the NavigationRail |
| navigationDrawerContainerColor | the default container color for the PermanentDrawerSheet |
| navigationDrawerContentColor | the default content color for the PermanentDrawerSheet |
itemColors
@Composable
fun itemColors(
navigationBarItemColors: NavigationBarItemColors = NavigationBarItemDefaults.colors(),
navigationRailItemColors: NavigationRailItemColors = NavigationRailItemDefaults.colors(),
navigationDrawerItemColors: NavigationDrawerItemColors =
NavigationDrawerItemDefaults.colors(),
): NavigationSuiteItemColors
Creates a NavigationSuiteItemColors with the provided colors for a NavigationSuiteScope.item.
For specifics about each navigation item colors see NavigationBarItemColors, NavigationRailItemColors, and NavigationDrawerItemColors.
Parameters
| navigationBarItemColors | the NavigationBarItemColors associated with the NavigationBarItem of the NavigationSuiteScope.item |
| navigationRailItemColors | the NavigationRailItemColors associated with the NavigationRailItem of the NavigationSuiteScope.item |
| navigationDrawerItemColors | the NavigationDrawerItemColors associated with the NavigationDrawerItem of the NavigationSuiteScope.item |