Windows Widget Set does not detect "default app mode" (Dark mode/ Dark Theme)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
Recent Windows 10 version(s) have the option to set the "default app mode" to either "dark" or "light" (default), and the option to change "accent colors".
In Windows: go to "Settings" - "Personalization" - "Colors", you'll find the accent colors here. Scroll to the bottom where you'll see "Choose your default app mode".
The windows widget set however does not seem to be aware this.
This seems to be a UWP or Metro style? But I'm not knowledgable about either.
Seems some of this can be found in the registry, but I'm not a Windows expert:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize<br/>
Where "AppsUseLightTheme"=1 if light theme is being used, and =0 if dark theme is being used.
Not sure how helpful these resources are:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn772323(v=vs.85).aspx
https://docs.microsoft.com/en-us/windows/uwp/design/style/color
Steps to reproduce:
Make a new project/application. Nothing on it.
Build and run. It's using the light theme.
Close the application.
Switch Windows to dark theme.
Run the application again: still light mode.
Additional information:
Lazarus 1.9.0 r58963 FPC 3.0.4 i386-win32-win32/win64
Mantis conversion info:
- Mantis ID: 34308
- OS: Windows 10 (64bit)
- OS Build: 10.0.17134.254
- Build: r58963
- Platform: Windows
- Version: 1.8.5 (SVN)
- Monitored by: » Hansaplast (Hans Luijten)