ContextualToolbarColors

class ContextualToolbarColors(val backgroundColor: Color = Color.Unspecified, val iconColor: Color = Color.Unspecified, val iconSelectedColor: Color = Color.Unspecified, val submenuBackgroundColor: Color = Color.Unspecified, val borderColor: Color = Color.Unspecified, val submenuBorderColor: Color = Color.Unspecified, val iconDisabledColor: Color = Color.Unspecified, val textColor: Color = Color.Unspecified)

Color scheme for the contextual toolbars, such as the annotation creation toolbar, and their submenus.

A color left Color.Unspecified takes its Material 3 role from the scheme's UiColorScheme.material when the scheme is resolved.

Constructors

Link copied to clipboard
constructor(backgroundColor: Color = Color.Unspecified, iconColor: Color = Color.Unspecified, iconSelectedColor: Color = Color.Unspecified, submenuBackgroundColor: Color = Color.Unspecified, borderColor: Color = Color.Unspecified, submenuBorderColor: Color = Color.Unspecified, iconDisabledColor: Color = Color.Unspecified, textColor: Color = Color.Unspecified)

Properties

Link copied to clipboard

Background of the bar; surfaceContainer by default.

Link copied to clipboard

Border of the bar while it is docked to a side of the screen; outlineVariant by default.

Link copied to clipboard

Tint of the item icons; onSurfaceVariant by default.

Link copied to clipboard

Tint of disabled item icons. Defaults to iconColor at half opacity, the View toolbars' disabled item alpha, wherever the scheme comes from.

Link copied to clipboard

Tint of the selected item's icon, and of the translucent circle behind it; primary by default.

Link copied to clipboard

Background of the sheet a grouped item opens; surfaceContainerHigh by default.

Link copied to clipboard

Border of the submenu sheet; outlineVariant by default.

Link copied to clipboard

Color of items shown as text, and of text in content a host puts in the bar. Defaults to iconColor. Schemes that come from a main toolbar, the XML theme's included, use its text color instead, which is what those items have always shown.

Functions

Link copied to clipboard
fun copy(backgroundColor: Color = this.backgroundColor, iconColor: Color = this.iconColor, iconSelectedColor: Color = this.iconSelectedColor, submenuBackgroundColor: Color = this.submenuBackgroundColor, borderColor: Color = this.borderColor, submenuBorderColor: Color = this.submenuBorderColor, iconDisabledColor: Color = this.iconDisabledColor, textColor: Color = this.textColor): ContextualToolbarColors

Returns a copy with the given colors replaced.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two ContextualToolbarColors are equal when all their colors are.

Link copied to clipboard
open override fun hashCode(): Int

A hash of all the colors, consistent with equals.

Link copied to clipboard
open override fun toString(): String

Every color, by property name.