DesktopContrast enum

Namespace Runic.Platform in Runic.Platform 0.23.0

public enum DesktopContrast

The desktop's contrast preference, as CSS prefers-contrast and forced-colors describe it.

Remarks

This set is open: a minor release may add values, such as one for less contrast, so handle an unknown value as DesktopContrast.NoPreference.

Values

NoPreference

NoPreference = 0

The desktop asks for no particular contrast.

More

More = 1

The desktop asks for more contrast, but applications keep their own colours: macOS "Increase contrast", GNOME's "High Contrast". A page sees prefers-contrast: more where its engine follows the setting.

ForcedColors

ForcedColors = 2

The desktop replaces application colours with a small palette of its own (DesktopAppearance.SystemColors): a Windows contrast theme. A page sees forced-colors: active where its engine follows the setting, and its colours are forced to the palette.