On Wed Oct 11 01:44:29 2023 +0000, Zhiyi Zhang wrote:
It looks to me that AllowDarkModeForWindow() and SetPreferredAppMode() set window-specific properties so that dark mode can be enabled/disabled for individual windows. And ShouldAppsUseDarkMode() should consider that. For the moment, returning the AppsUseLightTheme value for ShouldAppsUseDarkMode() is probably enough.
https://github.com/ysc3839/win32-darkmode/blob/master/win32-darkmode/DarkMod... also lists these undocumented functions.