ShortNavigationBarItemDefaults


Defaults used in ShortNavigationBarItem.

Summary

Public functions

NavigationItemColors

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

Cmn
NavigationItemColors
@Composable
colors(
    selectedIconColor: Color,
    selectedTextColor: Color,
    selectedIndicatorColor: Color,
    unselectedIconColor: Color,
    unselectedTextColor: Color,
    disabledIconColor: Color,
    disabledTextColor: Color
)

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

Cmn

Public functions

colors

@Composable
fun colors(): NavigationItemColors

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

colors

@Composable
fun colors(
    selectedIconColor: Color = NavigationBarTokens.ItemActiveIconColor.value,
    selectedTextColor: Color = NavigationBarTokens.ItemActiveLabelTextColor.value,
    selectedIndicatorColor: Color = NavigationBarTokens.ItemActiveIndicatorColor.value,
    unselectedIconColor: Color = NavigationBarTokens.ItemInactiveIconColor.value,
    unselectedTextColor: Color = NavigationBarTokens.ItemInactiveLabelTextColor.value,
    disabledIconColor: Color = unselectedIconColor.copy(alpha = DisabledAlpha),
    disabledTextColor: Color = unselectedTextColor.copy(alpha = DisabledAlpha)
): NavigationItemColors

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

Parameters
selectedIconColor: Color = NavigationBarTokens.ItemActiveIconColor.value

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

selectedTextColor: Color = NavigationBarTokens.ItemActiveLabelTextColor.value

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

selectedIndicatorColor: Color = NavigationBarTokens.ItemActiveIndicatorColor.value

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

unselectedIconColor: Color = NavigationBarTokens.ItemInactiveIconColor.value

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

unselectedTextColor: Color = NavigationBarTokens.ItemInactiveLabelTextColor.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.