NavigationRailItemDefaults


Defaults used in NavigationRailItem.

Summary

Public functions

NavigationRailItemColors

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

Cmn
NavigationRailItemColors
@Composable
colors(
    selectedIconColor: Color,
    selectedTextColor: Color,
    indicatorColor: Color,
    unselectedIconColor: Color,
    unselectedTextColor: Color,
    disabledIconColor: Color,
    disabledTextColor: Color
)

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

Cmn

Public functions

colors

@Composable
fun colors(): NavigationRailItemColors

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

colors

@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.

Parameters
selectedIconColor: Color = NavigationRailTokens.ActiveIconColor.value

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

selectedTextColor: Color = NavigationRailTokens.ActiveLabelTextColor.value

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

indicatorColor: Color = NavigationRailTokens.ActiveIndicatorColor.value

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

unselectedIconColor: Color = NavigationRailTokens.InactiveIconColor.value

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

unselectedTextColor: Color = NavigationRailTokens.InactiveLabelTextColor.value

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

disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha)

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

disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha)

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