Palette class
Computed theme colors derived from a ThemeSeed and an accent.
public sealed class PalettePublic Members
Section titled “Public Members”| name | description |
|---|---|
| Palette(…) | Initializes a new instance of the Palette class. |
| Accent { get; } | Gets the accent color. |
| AccentBorderActiveOverlay { get; } | Gets the overlay color applied to accent borders while active. |
| AccentBorderHotOverlay { get; } | Gets the overlay color applied to accent borders on hover. |
| AccentHoverOverlay { get; } | Gets the overlay color applied to accent surfaces on hover. |
| AccentPressedOverlay { get; } | Gets the overlay color applied to accent surfaces while pressed. |
| AccentText { get; } | Gets the text color drawn on the accent color. |
| ButtonDisabledBackground { get; } | Gets the background color of a disabled button. |
| ButtonFace { get; } | Gets the face color of button-like controls. |
| ButtonHoverBackground { get; } | Gets the background color of a hovered button. |
| ButtonPressedBackground { get; } | Gets the background color of a pressed button. |
| ContainerBackground { get; } | Gets the background color of container controls. |
| ControlBackground { get; } | Gets the default control background color. |
| ControlBorder { get; } | Gets the default control border color. |
| DisabledAccent { get; } | Gets the accent color of disabled controls. |
| DisabledControlBackground { get; } | Gets the background color of disabled controls. |
| DisabledText { get; } | Gets the text color of disabled controls. |
| Error { get; } | Gets the semantic color used for validation and binding error feedback. |
| Focus { get; } | Gets the focus indicator color. |
| PlaceholderText { get; } | Gets the placeholder text color. |
| ScrollBarThumb { get; } | Gets the scrollbar thumb color. |
| ScrollBarThumbActive { get; } | Gets the scrollbar thumb color while dragged. |
| ScrollBarThumbHover { get; } | Gets the scrollbar thumb color on hover. |
| Seed { get; } | Gets the seed this palette was derived from. |
| SelectionBackground { get; } | Gets the selection background color. |
| SelectionText { get; } | Gets the selection text color. |
| WindowBackground { get; } | Gets the window background color. |
| WindowText { get; } | Gets the default window foreground (text) color. |
| WithAccent(…) | Creates a copy of this palette with a different accent. |
| static IsDarkBackground(…) | Returns whether a background color should be treated as dark. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI