getContextualToolbarColors

fun getContextualToolbarColors(backgroundColor: Color = MaterialTheme.colorScheme.surfaceContainer, iconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, iconSelectedColor: Color = MaterialTheme.colorScheme.primary, submenuBackgroundColor: Color = MaterialTheme.colorScheme.surfaceContainerHigh, borderColor: Color = MaterialTheme.colorScheme.outlineVariant, submenuBorderColor: Color = MaterialTheme.colorScheme.outlineVariant, iconDisabledColor: Color = iconColor.copy(alpha = 0.5f), textColor: Color = iconColor): ContextualToolbarColors

Creates ContextualToolbarColors from the Material theme for the contextual toolbars.

Return

The ContextualToolbarColors.

Parameters

backgroundColor

Background of the bar.

iconColor

Tint of the item icons.

iconSelectedColor

Tint of the selected item's icon, and of the translucent circle behind it.

submenuBackgroundColor

Background of the submenu sheet.

borderColor

Border of the bar while it is docked to a side of the screen.

submenuBorderColor

Border of the submenu sheet.

iconDisabledColor

Tint of disabled item icons. Defaults to iconColor at half opacity, like every scheme.

textColor

Color of items shown as text.