DesktopSystemColors record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopSystemColors : IEquatable<DesktopSystemColors>

Inherits or implements IEquatable.

The palette of a desktop that forces its colours (DesktopContrast.ForcedColors), by the CSS system colour each entry corresponds to.

Parameters

Canvas

The background of windows and pages (CSS Canvas; Windows "Background", COLOR_WINDOW).

CanvasText

Text on Canvas (CanvasText; "Text", COLOR_WINDOWTEXT).

LinkText

Links (LinkText; "Hyperlink", COLOR_HOTLIGHT).

GrayText

Disabled text (GrayText; "Inactive text", COLOR_GRAYTEXT).

Highlight

The background of selected text (Highlight; "Selected text" background, COLOR_HIGHLIGHT).

HighlightText

Selected text (HighlightText; "Selected text", COLOR_HIGHLIGHTTEXT).

ButtonFace

The background of buttons (ButtonFace; "Button text" background, COLOR_BTNFACE).

ButtonText

Text 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

Canvas

The background of windows and pages (CSS Canvas; Windows "Background", COLOR_WINDOW).

CanvasText

Text on Canvas (CanvasText; "Text", COLOR_WINDOWTEXT).

LinkText

Links (LinkText; "Hyperlink", COLOR_HOTLIGHT).

GrayText

Disabled text (GrayText; "Inactive text", COLOR_GRAYTEXT).

Highlight

The background of selected text (Highlight; "Selected text" background, COLOR_HIGHLIGHT).

HighlightText

Selected text (HighlightText; "Selected text", COLOR_HIGHLIGHTTEXT).

ButtonFace

The background of buttons (ButtonFace; "Button text" background, COLOR_BTNFACE).

ButtonText

Text 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).