Skip to content

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

NameTypeDescription
systemAccentColorPrimary accent color.
applicationTheme = 2[ApplicationTheme](#If [Dark](# the colors will be different.
systemGlassColor = falseboolIf 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

NameTypeDescription
systemAccentColorPrimary color.
primaryAccentColorAlternative light or dark color.
secondaryAccentColorSecond alternative light or dark color (most used).
tertiaryAccentColorThird alternative light or dark color.