You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the ApplicationAccentColorManager.Apply(Colors.Red, CurrentApplicationTheme);.
I've added a toggleswitch to SettingsPage.xaml to showcase the problem. Please refer to the gif in the 'Screenshots' section for a visual representation.
Now when I toggle between light and dark theme, nothing changes. But when you hover the mouse over a control, the color appears.
When checking the ApplicationAccentColorManager.PrimaryAccent, ApplicationAccentColorManager.SecondaryAccent etc properties, they all have the correct values. The same problem occurs when using ApplicationAccentColorManager.Apply(Color systemAccent, Color primaryAccent, Color secondaryAccent, Color tertiaryAccent).
So it looks to be in the controls not adopting the new accent colors.
Expected behavior
The controls should change accent colors when executing ApplicationAccentColorManager.Apply.
Screenshots
OS version
Windows 11
.NET version
.NET 8
WPF-UI NuGet version
Cloned the latest main branch.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Right before you set the theme (manual or through a system change). If it's applied afterwards, it gets ignored. I've updated the code in my example accordingly.
This in conjunction with the linked PR should have the accentcolors working as expected.
Describe the bug
When applying an application accent color, it doesn't get properly set on all controls, only mouseover works.
To Reproduce
To reproduce, I've used the Wpf.Ui.Demo.Mvvm project (latest version), and modified SettingsViewModel as such:
Note the
ApplicationAccentColorManager.Apply(Colors.Red, CurrentApplicationTheme);
.I've added a toggleswitch to SettingsPage.xaml to showcase the problem. Please refer to the gif in the 'Screenshots' section for a visual representation.
Now when I toggle between light and dark theme, nothing changes. But when you hover the mouse over a control, the color appears.
When checking the
ApplicationAccentColorManager.PrimaryAccent
,ApplicationAccentColorManager.SecondaryAccent
etc properties, they all have the correct values. The same problem occurs when usingApplicationAccentColorManager.Apply(Color systemAccent, Color primaryAccent, Color secondaryAccent, Color tertiaryAccent)
.So it looks to be in the controls not adopting the new accent colors.
Expected behavior
The controls should change accent colors when executing
ApplicationAccentColorManager.Apply
.Screenshots
OS version
Windows 11
.NET version
.NET 8
WPF-UI NuGet version
Cloned the latest main branch.
Additional context
No response
The text was updated successfully, but these errors were encountered: