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)
- C#
- VB
- F#
public class PlatformColorValues : IEquatable<PlatformColorValues>
Public Class PlatformColorValues
Implements IEquatable(Of PlatformColorValues)
type PlatformColorValues =
class
interface IEquatable<PlatformColorValues>
end
Inheritance | Object → PlatformColorValues |
Implements | IEquatable(PlatformColorValues) |
Constructors
PlatformColorValues() | Initializes a new instance of the PlatformColorValues class |
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
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) |