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

NameDescription
ForcedColorsTheme()

ForcedColorsTheme()

ForcedColorsTheme.cs
public ForcedColorsTheme()

No documentation is available.

Properties

NameDescription
AccentColorGets or sets the AccentColor system color: the background of the accented user interface controls.
AccentColorTextGets or sets the AccentColorText system color: the text of the accented user interface controls.
ActiveTextGets or sets the ActiveText system color: the text of the active links.
ButtonBorderGets or sets the ButtonBorder system color: the base border color of the controls.
ButtonFaceGets or sets the ButtonFace system color: the background of the controls.
ButtonTextGets or sets the ButtonText system color: the text of the controls.
CanvasGets or sets the Canvas system color: the background of the application content or of the documents.
CanvasTextGets or sets the CanvasText system color: the text of the application content or of the documents.
DarkGets the default dark palette: the system colors of the dark color scheme (white text on a dark canvas).
FieldGets or sets the Field system color: the background of the input fields.
FieldTextGets or sets the FieldText system color: the text of the input fields.
GrayTextGets or sets the GrayText system color: the disabled text.
HighlightGets or sets the Highlight system color: the background of the selected text.
HighlightTextGets or sets the HighlightText system color: the selected text.
LightGets the default light palette: the system colors of the light color scheme (black text on a white canvas).
LinkTextGets or sets the LinkText system color: the text of the non-active, non-visited links.
MarkGets or sets the Mark system color: the background of the text that has been specially marked.
MarkTextGets or sets the MarkText system color: the text that has been specially marked.
SelectedItemGets or sets the SelectedItem system color: the background of the selected items.
SelectedItemTextGets or sets the SelectedItemText system color: the text of the selected items.
VisitedTextGets or sets the VisitedText system color: the text of the visited links.

Gets or sets the AccentColor system color: the background of the accented user interface controls.

public Color AccentColor { get; init; }

Property value

Color

AccentColorText

ForcedColorsTheme.cs

Gets or sets the AccentColorText system color: the text of the accented user interface controls.

public Color AccentColorText { get; init; }

Property value

Color

Gets or sets the ActiveText system color: the text of the active links.

public Color ActiveText { get; init; }

Property value

Color

Gets or sets the ButtonBorder system color: the base border color of the controls.

public Color ButtonBorder { get; init; }

Property value

Color

Gets or sets the ButtonFace system color: the background of the controls.

public Color ButtonFace { get; init; }

Property value

Color

Gets or sets the ButtonText system color: the text of the controls.

public Color ButtonText { get; init; }

Property value

Color

Gets or sets the Canvas system color: the background of the application content or of the documents.

public Color Canvas { get; init; }

Property value

Color

Gets or sets the CanvasText system color: the text of the application content or of the documents.

public Color CanvasText { get; init; }

Property value

Color

Gets 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

ForcedColorsTheme

Gets or sets the Field system color: the background of the input fields.

public Color Field { get; init; }

Property value

Color

Gets or sets the FieldText system color: the text of the input fields.

public Color FieldText { get; init; }

Property value

Color

Gets or sets the GrayText system color: the disabled text.

public Color GrayText { get; init; }

Property value

Color

Gets or sets the Highlight system color: the background of the selected text.

public Color Highlight { get; init; }

Property value

Color

Gets or sets the HighlightText system color: the selected text.

public Color HighlightText { get; init; }

Property value

Color

Gets 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

ForcedColorsTheme

Gets or sets the LinkText system color: the text of the non-active, non-visited links.

public Color LinkText { get; init; }

Property value

Color

Gets or sets the Mark system color: the background of the text that has been specially marked.

public Color Mark { get; init; }

Property value

Color

Gets or sets the MarkText system color: the text that has been specially marked.

public Color MarkText { get; init; }

Property value

Color

Gets or sets the SelectedItem system color: the background of the selected items.

public Color SelectedItem { get; init; }

Property value

Color

SelectedItemText

ForcedColorsTheme.cs

Gets or sets the SelectedItemText system color: the text of the selected items.

public Color SelectedItemText { get; init; }

Property value

Color

Gets or sets the VisitedText system color: the text of the visited links.

public Color VisitedText { get; init; }

Property value

Color

Methods

NameDescription
Equals(ForcedColorsTheme?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(ForcedColorsTheme?)

public bool Equals(ForcedColorsTheme? other)
Parameters
other ForcedColorsTheme?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ForcedColorsTheme?, ForcedColorsTheme?)
operator !=(ForcedColorsTheme?, ForcedColorsTheme?)

operator ==(ForcedColorsTheme?, ForcedColorsTheme?)

public static bool operator ==(ForcedColorsTheme? left, ForcedColorsTheme? right)

Parameters

left ForcedColorsTheme?
right ForcedColorsTheme?

Returns

bool

No documentation is available.

operator !=(ForcedColorsTheme?, ForcedColorsTheme?)

public static bool operator !=(ForcedColorsTheme? left, ForcedColorsTheme? right)

Parameters

left ForcedColorsTheme?
right ForcedColorsTheme?

Returns

bool

No documentation is available.