Skip to content

Commit

Permalink
Select Apps icon based on Windows version
Browse files Browse the repository at this point in the history
We now have nicer Apps icons for Win10/11 so we will select proper icon
based on Windows version.
  • Loading branch information
ge0rdi committed Dec 30, 2022
1 parent 7f492f3 commit 344aa60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Src/StartMenu/StartMenuDLL/ItemManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,14 @@ const CItemManager::ItemInfo *CItemManager::GetCustomIcon( const wchar_t *path,
*c=0;
index=-_wtol(c+1);
}
// special handling for Apps icon
if (!text[0] && index==-IDI_APPSICON)
{
if (IsWin11())
index=-IDI_APPSICON11;
else if (GetWinVersion()==WIN_VER_WIN10)
index=-IDI_APPSICON10;
}
return GetCustomIcon(text,index,iconSizeType,false);
}

Expand Down

0 comments on commit 344aa60

Please sign in to comment.