Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/system.c:
+ +/********************************************************************** + * 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; + + /* We don't necessarily care that this might fail because it doesn't affect + * system_uses_light_theme if it does. + */ While comments are nice to have, these are pretty obvious so I think you can ignore it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3959#note_47269