PlatformColorValues Class
Definition
Information about current system color values, including information about dark mode and accent colors.
public class PlatformColorValues
Constructors
| Name | Description |
|---|---|
| PlatformColorValues | No summary available. |
PlatformColorValues Constructor
public PlatformColorValues()
Methods
| Name | Description |
|---|---|
| <Clone>$ | No summary available. |
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No summary available. |
<Clone>$ Method
public Avalonia.Platform.PlatformColorValues <Clone>$()
Returns
Equals overloads
Equals Method
public bool Equals(Avalonia.Platform.PlatformColorValues other)
Parameters
other Avalonia.Platform.PlatformColorValues
Returns
bool
Equals Method
public bool Equals(object obj)
Parameters
obj object
Returns
bool
GetHashCode Method
public int GetHashCode()
Returns
int
ToString Method
public string ToString()
Returns
string
Properties
| Name | Description |
|---|---|
| AccentColor1 | Primary system accent color. |
| AccentColor2 | Secondary system accent color. On some platforms can return the same value as Avalonia.Platform.PlatformColorValues.AccentColor1. |
| AccentColor3 | Tertiary system accent color. On some platforms can return the same value as Avalonia.Platform.PlatformColorValues.AccentColor1. |
| ContrastPreference | System high contrast preference. |
| ThemeVariant | System theme variant or mode. |
AccentColor1 Property
Primary system accent color.
public Avalonia.Media.Color AccentColor1 { get; set; }
AccentColor2 Property
Secondary system accent color. On some platforms can return the same value as Avalonia.Platform.PlatformColorValues.AccentColor1.
public Avalonia.Media.Color AccentColor2 { get; set; }
AccentColor3 Property
Tertiary system accent color. On some platforms can return the same value as Avalonia.Platform.PlatformColorValues.AccentColor1.
public Avalonia.Media.Color AccentColor3 { get; set; }
ContrastPreference Property
System high contrast preference.
public Avalonia.Platform.ColorContrastPreference ContrastPreference { get; set; }
ThemeVariant Property
System theme variant or mode.
public Avalonia.Platform.PlatformThemeVariant ThemeVariant { get; set; }