GetAccent Method
This does not account for perceptual differences and also does not match with system accent color calculation.
Definition
Namespace: Avalonia.Controls.Primitives.Converters
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)
- C#
- VB
- F#
public static HsvColor GetAccent(
HsvColor hsvColor,
int accentStep
)
Public Shared Function GetAccent (
hsvColor As HsvColor,
accentStep As Integer
) As HsvColor
static member GetAccent :
hsvColor : HsvColor *
accentStep : int -> HsvColor
Parameters
Return Value
HsvColor
The new accent color.
Remarks
Use the HSV representation as it's more perceptual. In most cases only the value is changed by a fixed percentage so the algorithm is reproducible.
See Also
Reference
AccentColorConverter Class
Avalonia.Controls.Primitives.Converters Namespace