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.

Application does not respect the system color settings due to bad detection by SystemColorsSupported

See original GitHub issue

If I try to use the library in my .NET Core 3.1 project, the system color settings is not respected when running from Visual Studio or directly from exe. This is not a problem in JetBrains Rider IDE. The issue is that Environment.OSVersion.Version (used in ColorsHelper.SystemColorsSupported) shows version 6.2.9200 but the library tests Major version for >=10, which can’t happen. This could happen because of this: https://docs.microsoft.com/en-US/windows/win32/sysinfo/targeting-your-application-at-windows-8-1 (https://www.prugg.at/2019/09/09/properly-detect-windows-version-in-c-net-even-windows-10/).

I found out a temporary workaround by adding app.manifest to the project (right click on project in solution explorer -> Add -> New item… -> Application Manifest File (Windows only)) and then uncommenting line <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ShankarBUScommented, Jul 21, 2020

If the info about the need of app.manifest and how to add it properly is added to README, it will reduce confusion and will be helpful to new users.

1reaction
Kinnaracommented, Jul 28, 2020

The requirement of app.manifest has been removed by 2c27fba9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In .NET 5.0 Error · Issue #140 · Kinnara/ModernWpf
Application does not respect the system color settings due to bad detection by SystemColorsSupported #143. Closed.
Read more >
Dark Mode Email: Your Ultimate How-to Guide
Read answers to FAQs around Dark Mode email, view code snippets, learn about different tools and tips, & download an all-encompassing "Dark ...
Read more >
sitemap-questions-395.xml
... .com/questions/4459699/how-well-are-the-css2-system-colors-supported ... .com/questions/4630197/is-directly-executing-sql-bad-app-design 2013-10-08 ...
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