MainToolbarColors

class MainToolbarColors(val backgroundColor: Color = Color.Unspecified, val textColor: Color = Color.Unspecified, val popup: ToolbarPopupColors = ToolbarPopupColors(), val titleTextColor: Color = Color.Unspecified, val iconColor: Color = Color.Unspecified, val iconSelectedColor: Color = Color.Unspecified, val iconDisabledColor: Color = Color.Unspecified, val documentTitleOverlay: DocumentTitleOverlayColors = DocumentTitleOverlayColors())

Color scheme for the main toolbar in the PDF viewer.

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, textColor: Color = Color.Unspecified, popup: ToolbarPopupColors = ToolbarPopupColors(), titleTextColor: Color = Color.Unspecified, iconColor: Color = Color.Unspecified, iconSelectedColor: Color = Color.Unspecified, iconDisabledColor: Color = Color.Unspecified, documentTitleOverlay: DocumentTitleOverlayColors = DocumentTitleOverlayColors())

Properties

Link copied to clipboard

Background color of the toolbar; surfaceContainer by default, the role the contextual toolbar and the thumbnail bar share.

Link copied to clipboard

Color scheme for the document title overlay strip rendered below the toolbar row. Defaults to the toolbar's own backgroundColor and titleTextColor so the overlay blends with the toolbar unless themed separately.

Link copied to clipboard

Tint for action icons. Defaults to textColor so icons match the toolbar foreground.

Link copied to clipboard

Tint for a disabled action icon. Defaults to iconColor at the Material 3 disabled-content alpha (0.38).

Link copied to clipboard

Tint for a selected/activated action icon (e.g. an active annotation tool). Defaults to iconColor; the selected state is also conveyed by the Material 3 state-layer background at render time.

Link copied to clipboard

Color scheme for toolbar popup menus; surfaceContainer by default.

Link copied to clipboard

Primary text color used in the toolbar; onBackground by default.

Link copied to clipboard

Color used for the toolbar title text; onBackground by default.

Functions

Link copied to clipboard
fun copy(backgroundColor: Color = this.backgroundColor, textColor: Color = this.textColor, popup: ToolbarPopupColors = this.popup, titleTextColor: Color = this.titleTextColor, iconColor: Color = this.iconColor, iconSelectedColor: Color = this.iconSelectedColor, iconDisabledColor: Color = this.iconDisabledColor, documentTitleOverlay: DocumentTitleOverlayColors = this.documentTitleOverlay): MainToolbarColors

Returns a copy with the given colors replaced.

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

Two MainToolbarColors 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.