public enum SystemColorA CSS system colour: a name whose value the operating system owns rather than the sheet.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
CSS Color 4 § 6.1's list, minus the three deprecated groups. Every one of these is a role and not a colour — Canvas is "whatever this platform paints a page on" — which is what makes them the only spelling in CSS that can follow a light/dark switch, a high-contrast switch or an accent-colour change without a stylesheet saying anything.
⚠ The pairs travel together and reading one without the other is the mistake this enum's ordering is arranged to make hard. A background role is immediately followed by its text role — Canvas/CanvasText, ButtonFace/ButtonText, Field/FieldText, Highlight/HighlightText, Mark/MarkText, AccentColor/AccentColorText — because a forced palette guarantees contrast within a pair and guarantees nothing across two. Substituting Canvas behind ButtonText is how a high-contrast theme produces invisible text out of two colours the platform chose.
Fields and properties (15)
CanvasThe background of application content.
CanvasTextText on Canvas.
LinkTextText of a hyperlink that has not been followed.
ButtonFaceThe face of a push button.
ButtonTextText on ButtonFace.
ButtonBorderThe border of a push button.
FieldThe background of an input field.
FieldTextText in a Field.
HighlightThe background of selected text.
HighlightTextText on Highlight.
GrayTextText of a control that is disabled.
MarkThe background of marked or found text.
MarkTextText on Mark.
AccentColorThe user's chosen accent colour.
AccentColorTextText on AccentColor.
Used by (7)
- DrawListBuilderVixen.Ui
- ForcedColorsTestsVixen.Ui.Tests
- PlatformInputVixen.Platform.Ui
- StyleValueParserVixen.Ui.Styling
- SystemPaletteVixen.Ui.Styling
- SystemPaletteWiringTestsVixen.Platform.Ui.Tests
- ThemeAccentTokenTestsVixen.Ui.Controls.Tests