From 7846482daeca11c5f6d471b2419af556857e82fa Mon Sep 17 00:00:00 2001 From: ikasmc <65895428+ikas-mc@users.noreply.github.com> Date: Wed, 6 Apr 2022 12:07:40 +0800 Subject: [PATCH] fix menu theme mode --- .../ContextMenuCustomHost/CustomExplorerCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp b/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp index 356c73f..3fc695f 100644 --- a/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp +++ b/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp @@ -39,7 +39,7 @@ const wchar_t* CustomExplorerCommand::GetIconId() { DWORD value = 0; DWORD size = sizeof(value); - auto result = SHRegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", L"SystemUsesLightTheme", SRRF_RT_DWORD, NULL, &value, &size); + auto result = SHRegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", L"AppsUseLightTheme", SRRF_RT_DWORD, NULL, &value, &size); if (result == ERROR_SUCCESS && !!value) { return L",-103"; }