Skip to content

Commit

Permalink
fix menu theme mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ikas-mc committed Apr 6, 2022
1 parent 070f5c3 commit 7846482
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 7846482

Please sign in to comment.