ForcedColorsTheme Class
The color palette of a forced colors mode (https://drafts.csswg.org/css-color-adjust-1/#forced): the values of the CSS system colors (https://drafts.csswg.org/css-color-4/#css-system-colors), which the user agent enforces on the pages (see ViewportOptions.ForcedColors) and exposes to them through the system color keywords. The colors are opaque: their alpha is ignored.
public sealed class ForcedColorsTheme : IEquatable<ForcedColorsTheme>- Implements
Constructors
| Name | Description |
|---|---|
| ForcedColorsTheme() |
ForcedColorsTheme()
ForcedColorsTheme.cspublic ForcedColorsTheme()No documentation is available.
Properties
| Name | Description |
|---|---|
| AccentColor | Gets or sets the AccentColor system color: the background of the accented user interface controls. |
| AccentColorText | Gets or sets the AccentColorText system color: the text of the accented user interface controls. |
| ActiveText | Gets or sets the ActiveText system color: the text of the active links. |
| ButtonBorder | Gets or sets the ButtonBorder system color: the base border color of the controls. |
| ButtonFace | Gets or sets the ButtonFace system color: the background of the controls. |
| ButtonText | Gets or sets the ButtonText system color: the text of the controls. |
| Canvas | Gets or sets the Canvas system color: the background of the application content or of the documents. |
| CanvasText | Gets or sets the CanvasText system color: the text of the application content or of the documents. |
| Dark | Gets the default dark palette: the system colors of the dark color scheme (white text on a dark canvas). |
| Field | Gets or sets the Field system color: the background of the input fields. |
| FieldText | Gets or sets the FieldText system color: the text of the input fields. |
| GrayText | Gets or sets the GrayText system color: the disabled text. |
| Highlight | Gets or sets the Highlight system color: the background of the selected text. |
| HighlightText | Gets or sets the HighlightText system color: the selected text. |
| Light | Gets the default light palette: the system colors of the light color scheme (black text on a white canvas). |
| LinkText | Gets or sets the LinkText system color: the text of the non-active, non-visited links. |
| Mark | Gets or sets the Mark system color: the background of the text that has been specially marked. |
| MarkText | Gets or sets the MarkText system color: the text that has been specially marked. |
| SelectedItem | Gets or sets the SelectedItem system color: the background of the selected items. |
| SelectedItemText | Gets or sets the SelectedItemText system color: the text of the selected items. |
| VisitedText | Gets or sets the VisitedText system color: the text of the visited links. |
AccentColor
ForcedColorsTheme.csAccentColorText
ForcedColorsTheme.csActiveText
ForcedColorsTheme.csButtonBorder
ForcedColorsTheme.csButtonFace
ForcedColorsTheme.csButtonText
ForcedColorsTheme.csCanvas
ForcedColorsTheme.csCanvasText
ForcedColorsTheme.csGets the default dark palette: the system colors of the dark color scheme (white text on a dark canvas).
public static ForcedColorsTheme Dark { get; }Property value
Field
ForcedColorsTheme.csFieldText
ForcedColorsTheme.csGrayText
ForcedColorsTheme.csHighlight
ForcedColorsTheme.csHighlightText
ForcedColorsTheme.csLight
ForcedColorsTheme.csGets the default light palette: the system colors of the light color scheme (black text on a white canvas).
public static ForcedColorsTheme Light { get; }Property value
LinkText
ForcedColorsTheme.csMarkText
ForcedColorsTheme.csSelectedItem
ForcedColorsTheme.csSelectedItemText
ForcedColorsTheme.csVisitedText
ForcedColorsTheme.csMethods
| Name | Description |
|---|---|
| Equals(ForcedColorsTheme?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(ForcedColorsTheme?)
public bool Equals(ForcedColorsTheme? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ForcedColorsTheme?, ForcedColorsTheme?) | |
| operator !=(ForcedColorsTheme?, ForcedColorsTheme?) |
operator ==(ForcedColorsTheme?, ForcedColorsTheme?)
public static bool operator ==(ForcedColorsTheme? left, ForcedColorsTheme? right)No documentation is available.
operator !=(ForcedColorsTheme?, ForcedColorsTheme?)
public static bool operator !=(ForcedColorsTheme? left, ForcedColorsTheme? right)No documentation is available.