How to get a system theme with ThemeManager?
See original GitHub issuetbsys.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:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Yes, I believe so. Thanks for the reminder.