Table of Contents

Class DefaultColors.MauiToolBar

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Provides predefined color values for styling toolbar elements in .NET MAUI applications.

public static class DefaultColors.MauiToolBar
Inheritance
DefaultColors.MauiToolBar

Remarks

This static class contains color definitions for various toolbar states and themes, including light and dark modes. The colors can be used to ensure consistent appearance across toolbars in MAUI-based user interfaces.

Fields

BackColorDark

Gets or sets the background color for toolbars in dark theme.

BackColorLight

Gets or sets the background color for toolbars in light theme.

DisabledTextColorDark

Gets or sets the disabled text color for toolbars in dark theme.

DisabledTextColorLight

Gets or sets the disabled text color for toolbars in light theme.

HotBorderColorDark

Gets or sets the hot (hover) border color for toolbars in dark theme.

HotBorderColorLight

Gets or sets the hot (hover) border color for toolbars in light theme.

PressedBorderColorDark

Gets or sets the pressed border color for toolbars in dark theme.

PressedBorderColorLight

Gets or sets the pressed border color for toolbars in light theme.

SeparatorColorDark

Gets or sets the separator color for toolbars in dark theme.

SeparatorColorLight

Gets or sets the separator color for toolbars in light theme.

StickyUnderlineColorDark

Gets or sets the sticky underline color for toolbars in dark theme.

StickyUnderlineColorLight

Gets or sets the sticky underline color for toolbars in light theme.

TextColorDark

Gets or sets the text color for toolbars in dark theme.

TextColorLight

Gets or sets the text color for toolbars in light theme.

Methods

BackColor(bool)

Gets the background color for toolbars based on the specified theme.

TextColor(bool)

Returns the recommended text color for either dark or light backgrounds.