ysc3839 / win32-darkmode

Example application shows how to use undocumented dark mode API introduced in Windows 10 1809.
MIT License
437 stars 48 forks source link

[QUESTION] How to toggle dark mode #9

Closed sniirful closed 4 years ago

sniirful commented 4 years ago

In order to make my application dark, I need to use "InitDarkMode()", but how to remove it?

sniirful commented 4 years ago

Okay, after messing up with the code I found out that "InitDarkMode()" must always be called at the beginning and then Dark Mode can be toggled using AllowDarkModeForApp(true/false);