ApplicationAccentColorManager.Apply(Color, ApplicationTheme, bool) method¶
Defined in
Type: ApplicationAccentColorManager
Namespace: CrissCross.WPF.UI.Appearance
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static void Apply(Color systemAccent, ApplicationTheme applicationTheme = Light, bool systemGlassColor = false) - 2.
public static void Apply(Color systemAccent, Color primaryAccent, Color secondaryAccent, Color tertiaryAccent)
1. Overload¶
public static void Apply(Color systemAccent, ApplicationTheme applicationTheme = Light, bool systemGlassColor = false)
Summary: Changes the color accents of the application based on the color entered.
Parameters
| Name | Type | Description |
|---|---|---|
systemAccent | Color | Primary accent color. |
applicationTheme = 2 | [ApplicationTheme](# | If [Dark](# the colors will be different. |
systemGlassColor = false | bool | If the color is taken from the Glass Color System, its brightness will be increased with the help of the operations on HSV space. |
2. Overload¶
public static void Apply(Color systemAccent, Color primaryAccent, Color secondaryAccent, Color tertiaryAccent)
Summary: Changes the color accents of the application based on the entered colors.
Parameters
| Name | Type | Description |
|---|---|---|
systemAccent | Color | Primary color. |
primaryAccent | Color | Alternative light or dark color. |
secondaryAccent | Color | Second alternative light or dark color (most used). |
tertiaryAccent | Color | Third alternative light or dark color. |