public sealed record DesktopSystemColors : IEquatable<DesktopSystemColors> The palette of a desktop that forces its colours (DesktopContrast.ForcedColors), by the CSS system colour each entry corresponds to.
Parameters
CanvasThe background of windows and pages (CSS
Canvas; Windows "Background",COLOR_WINDOW).CanvasTextText on
Canvas(CanvasText; "Text",COLOR_WINDOWTEXT).LinkTextLinks (
LinkText; "Hyperlink",COLOR_HOTLIGHT).GrayTextDisabled text (
GrayText; "Inactive text",COLOR_GRAYTEXT).HighlightThe background of selected text (
Highlight; "Selected text" background,COLOR_HIGHLIGHT).HighlightTextSelected text (
HighlightText; "Selected text",COLOR_HIGHLIGHTTEXT).ButtonFaceThe background of buttons (
ButtonFace; "Button text" background,COLOR_BTNFACE).ButtonTextText on buttons (
ButtonText; "Button text",COLOR_BTNTEXT).
Remarks
On Windows these are the eight colours of the contrast theme (Settings, Accessibility, Contrast themes, Edit), read with GetSysColor. macOS and GNOME do not force colours and report no palette.
Constructors
DesktopSystemColors
public DesktopSystemColors(DesktopAccentColor Canvas, DesktopAccentColor CanvasText, DesktopAccentColor LinkText, DesktopAccentColor GrayText, DesktopAccentColor Highlight, DesktopAccentColor HighlightText, DesktopAccentColor ButtonFace, DesktopAccentColor ButtonText) The palette of a desktop that forces its colours (DesktopContrast.ForcedColors), by the CSS system colour each entry corresponds to.
Parameters
CanvasThe background of windows and pages (CSS
Canvas; Windows "Background",COLOR_WINDOW).CanvasTextText on
Canvas(CanvasText; "Text",COLOR_WINDOWTEXT).LinkTextLinks (
LinkText; "Hyperlink",COLOR_HOTLIGHT).GrayTextDisabled text (
GrayText; "Inactive text",COLOR_GRAYTEXT).HighlightThe background of selected text (
Highlight; "Selected text" background,COLOR_HIGHLIGHT).HighlightTextSelected text (
HighlightText; "Selected text",COLOR_HIGHLIGHTTEXT).ButtonFaceThe background of buttons (
ButtonFace; "Button text" background,COLOR_BTNFACE).ButtonTextText on buttons (
ButtonText; "Button text",COLOR_BTNTEXT).
Remarks
On Windows these are the eight colours of the contrast theme (Settings, Accessibility, Contrast themes, Edit), read with GetSysColor. macOS and GNOME do not force colours and report no palette.
Properties
ButtonFace
public DesktopAccentColor ButtonFace { get; init; } The background of buttons (ButtonFace; "Button text" background, COLOR_BTNFACE).
ButtonText
public DesktopAccentColor ButtonText { get; init; } Text on buttons (ButtonText; "Button text", COLOR_BTNTEXT).
Canvas
public DesktopAccentColor Canvas { get; init; } The background of windows and pages (CSS Canvas; Windows "Background", COLOR_WINDOW).
CanvasText
public DesktopAccentColor CanvasText { get; init; } Text on Canvas (CanvasText; "Text", COLOR_WINDOWTEXT).
GrayText
public DesktopAccentColor GrayText { get; init; } Disabled text (GrayText; "Inactive text", COLOR_GRAYTEXT).
Highlight
public DesktopAccentColor Highlight { get; init; } The background of selected text (Highlight; "Selected text" background, COLOR_HIGHLIGHT).
HighlightText
public DesktopAccentColor HighlightText { get; init; } Selected text (HighlightText; "Selected text", COLOR_HIGHLIGHTTEXT).
LinkText
public DesktopAccentColor LinkText { get; init; } Links (LinkText; "Hyperlink", COLOR_HOTLIGHT).