Skip to content

Commit 344aa60

Browse files
committed
Select Apps icon based on Windows version
We now have nicer Apps icons for Win10/11 so we will select proper icon based on Windows version.
1 parent 7f492f3 commit 344aa60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Src/StartMenu/StartMenuDLL/ItemManager.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,14 @@ const CItemManager::ItemInfo *CItemManager::GetCustomIcon( const wchar_t *path,
11231123
*c=0;
11241124
index=-_wtol(c+1);
11251125
}
1126+
// special handling for Apps icon
1127+
if (!text[0] && index==-IDI_APPSICON)
1128+
{
1129+
if (IsWin11())
1130+
index=-IDI_APPSICON11;
1131+
else if (GetWinVersion()==WIN_VER_WIN10)
1132+
index=-IDI_APPSICON10;
1133+
}
11261134
return GetCustomIcon(text,index,iconSizeType,false);
11271135
}
11281136

0 commit comments

Comments
 (0)