From 59630b45de85dee3f4f8c5876d43d0d98f6744aa Mon Sep 17 00:00:00 2001 From: Mgg Sk Date: Fri, 6 Dec 2024 22:09:08 +0100 Subject: [PATCH] Second Update --- mods/dark-menus.wh.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mods/dark-menus.wh.cpp b/mods/dark-menus.wh.cpp index 84dbff093..ce075f6dd 100644 --- a/mods/dark-menus.wh.cpp +++ b/mods/dark-menus.wh.cpp @@ -12,6 +12,12 @@ /* # Dark mode context menus Forces dark mode for all win32 context menus to create a more consistent UI. + +### Before: +![Before](https://i.imgur.com/bGRVJz8.png) + +### After: +![After](https://i.imgur.com/BURKEki.png) */ // ==/WindhawkModReadme== @@ -54,10 +60,8 @@ BOOL Wh_ModInit() { } //Restores the default theme. -BOOL Wh_ModUninit() +void Wh_ModUninit() { FlushMenuThemes(); - HRESULT hResult = SetPreferredAppMode(Default); - - return SUCCEEDED(hResult); + SetPreferredAppMode(Default); }