PlatformColorValues Class

Information about current system color values, including information about dark mode and accent colors.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class PlatformColorValues : IEquatable<PlatformColorValues>
Inheritance
Object    PlatformColorValues
Implements
IEquatablePlatformColorValues

Properties

AccentColor1 Primary system accent color.
AccentColor2 Secondary system accent color. On some platforms can return the same value as AccentColor1.
AccentColor3 Tertiary system accent color. On some platforms can return the same value as AccentColor1.
ContrastPreference System high contrast preference.
ThemeVariant System theme variant or mode.

Methods

FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)

See Also