Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/system.c:
UnregisterUserApiHook(); return TRUE;
}
+/**********************************************************************
ShouldSystemUseDarkMode (UXTHEME.138)
- RETURNS
Whether or not the system/app should use dark mode.
- */
+BOOL WINAPI ShouldSystemUseDarkMode(void) +{
- DWORD system_uses_light_theme_size = sizeof(DWORD);
- /* Persists between calls, in windows it might look up some internal table. */
- static DWORD system_uses_light_theme = TRUE;
You can remove the static keyword and always initialize system_uses_light_theme to TRUE.