Module: wine Branch: master Commit: 29d5ce6b7a40635e2c4904ece9b8381a8132f248 URL: https://gitlab.winehq.org/wine/wine/-/commit/29d5ce6b7a40635e2c4904ece9b8381...
Author: Louis Lenders xerox.xerox2000x@gmail.com Date: Tue Oct 31 07:59:03 2023 +0100
uxtheme: Add stub for AllowDarkModeForWindow.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55742
---
dlls/uxtheme/system.c | 10 ++++++++++ dlls/uxtheme/uxtheme.spec | 1 + 2 files changed, 11 insertions(+)
diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c index 6b202bb48a7..2c041356930 100644 --- a/dlls/uxtheme/system.c +++ b/dlls/uxtheme/system.c @@ -1291,6 +1291,16 @@ BOOL WINAPI ShouldAppsUseDarkMode(void) return !light_theme; }
+/********************************************************************** + * AllowDarkModeForWindow (UXTHEME.133) + * + */ +BOOL WINAPI AllowDarkModeForWindow(HWND hwnd, BOOL allow) +{ + FIXME("%p %d: stub\n", hwnd, allow); + return FALSE; +} + /********************************************************************** * SetPreferredAppMode (UXTHEME.135) * diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec index 6bcebffe0a5..1cf8ae7e418 100644 --- a/dlls/uxtheme/uxtheme.spec +++ b/dlls/uxtheme/uxtheme.spec @@ -43,6 +43,7 @@ 62 stub -noname ServerClearStockObjects 63 stub -noname MarkSelection 132 stdcall -noname ShouldAppsUseDarkMode() +133 stdcall -noname AllowDarkModeForWindow(ptr long) 135 stdcall -noname SetPreferredAppMode(long) 138 stdcall -noname ShouldSystemUseDarkMode()