Skip to main content

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)

public class PlatformColorValues : IEquatable<PlatformColorValues>
View Source
InheritanceObject → PlatformColorValues
ImplementsIEquatable(PlatformColorValues)

Constructors

PlatformColorValues()Initializes a new instance of the PlatformColorValues class

Properties

AccentColor1Primary system accent color.
AccentColor2Secondary system accent color. On some platforms can return the same value as AccentColor1.
AccentColor3Tertiary system accent color. On some platforms can return the same value as AccentColor1.
ContrastPreferenceSystem high contrast preference.
ThemeVariantSystem theme variant or mode.

Methods

Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)

See Also

Reference

Avalonia.Platform Namespace