question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accent color when Windows determines the accent color itself

See original GitHub issue

Describe the bug

Windows 10 has an option:

“Automatically select an accent color from my background”.

This will select an accent color based on the background. But the color that MahApps / ControlzEx then sets is unfortunately not the same one that Windows then uses 😕

Maybe the error is also in “ControlzEx”. But since I only used MahApps I post it here 😃

Steps to reproduce

  • create a project (.net 5 for example)
  • include MahApps.Metro
  • Overwrite “OnStartup” in the App.xaml.cs" and add the following:
ControlzEx.Theming.ThemeManager.Current.ThemeSyncMode = ControlzEx.Theming.ThemeSyncMode.SyncAll;
ControlzEx.Theming.ThemeManager.Current.SyncTheme();
  • In Windows, set the “Automatically select an accent color from my background” setting.

  • Compare accent colors

Expected behavior

That the accent color MahApps.Metro uses is the same as in Windows.

Actual behavior

The accent color MahApps.Metro uses is not the same as in Windows. (Usually a little darker than the current color)

Environment

MahApps.Metro version: v2.4.7
Windows build number: Win10 21H1 [Version 119043.1151]
Visual Studio: 2019 16.10.4
Target Framework: .Net Core 5.0 (but also happens in other versions)

Screenshots

sample

Example project

MahAccent.zip

Not really useful, but here it is when needed 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
batzencommented, Aug 13, 2021

@punker76 Could you transfer this issue to ControlzEx? I can’t see the transfer button… Will fix it there next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows10 changing accent color on its own, How do I fix
Have you checked in Settings > Personalization > Colors > Automaticallly pick an accent color from my background. If you have that set...
Read more >
Accent color keeps changing by itself
In Win 10, go to Settings>Personalization>Colors uncheck Automatically pick an accent color from my background. This problem drove me crazy for ...
Read more >
Accent Color is Broken 22H2
It's strange how it works! It most often depends what accent color you choose, some times it looks great, other times it looks...
Read more >
Accent color keeps changing by itself
I am experiencing a very strange issue with my color, ever since the November update it keeps changing on its own.
Read more >
Windowblinds / Windows Accent Color
This is different to the accent colour. Your best bet is to alter the colour in the skin itself which can be done...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found