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.

How to get a system theme with ThemeManager?

See original GitHub issue

tbsys.Text = ModernWpf.ThemeManager.GetActualTheme(this).ToString(); This does not return me an actual theme, it returns a requested theme, but if there isno requested theme, then it returns default.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Kinnaracommented, Nov 22, 2019

Ah, now I see you want the app to use the Windows theme mode. Simply adding a proper app manifest should enable that. This commit 84f40691bb33fa02b2450fe246858a3b7d1e8b80 shows how to do that. Basically you add an app manifest to your project and uncomment the Windows 10 line.

If your app still doesn’t pick up the Windows theme (don’t forget to remove any RequestedTheme) I also made some changes that should make system theme handling more robust. It’s not published on NuGet yet but you can clone the latest code and try the FluentWPF sample.

image

0reactions
Kinnaracommented, Aug 4, 2020

Yes, I believe so. Thanks for the reminder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thememanager
Thememanager. MahApps.Metro has a ThemeManager class that lets you change the theme using code-behind. It can be done in 1 line, like so:...
Read more >
Detecting system theme in JavaScript / CSS / React
Using this code snippet we can easily detect what theme the user has set. Note that the code checks the system theme only...
Read more >
Managing Site Themes and Logo using AppManager ...
To create/edit the Theme Manager, open the Theme Manager in Management Apps. The current color theme for the site will be displayed with...
Read more >
Flutter Theme Manager for Multiple Themes - YouTube
This tutorial goes over the implementation of multiple themes in Flutter.
Read more >
A dark theme for ThemeManager - Software
Inside the Haiku folder there is a file RoiredUIThemes.zip that hold the Roired and RoiredDark themes folders. Please let me know if you...
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