colors

Creates a NavigationRailItemColors with the provided colors according to the Material specification.


@Composable
fun colors(selectedIconColor: Color = NavigationRailTokens.ActiveIconColor.value, selectedTextColor: Color = NavigationRailTokens.ActiveLabelTextColor.value, indicatorColor: Color = NavigationRailTokens.ActiveIndicatorColor.value, unselectedIconColor: Color = NavigationRailTokens.InactiveIconColor.value, unselectedTextColor: Color = NavigationRailTokens.InactiveLabelTextColor.value, disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha), disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha)): NavigationRailItemColors

Creates a NavigationRailItemColors with the provided colors according to the Material specification.

Return

the resulting NavigationRailItemColors used for NavigationRailItem

Parameters

selectedIconColor

the color to use for the icon when the item is selected.

selectedTextColor

the color to use for the text label when the item is selected.

indicatorColor

the color to use for the indicator when the item is selected.

unselectedIconColor

the color to use for the icon when the item is unselected.

unselectedTextColor

the color to use for the text label when the item is unselected.

disabledIconColor

the color to use for the icon when the item is disabled.

disabledTextColor

the color to use for the text label when the item is disabled.