mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-12 18:07:24 +10:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
344aa60893 | ||
|
|
7f492f3a9f | ||
|
|
1c95f17460 |
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -768,7 +768,7 @@ IUpdateSessionOrchestrator : public IUnknown
|
||||
STDMETHOD(CreateUxUpdateManager)(IUnknown**);
|
||||
};
|
||||
|
||||
DWORD WindowsUpdateAdjustShutdwonFlags(DWORD flags)
|
||||
DWORD WindowsUpdateAdjustShutdownFlags(DWORD flags)
|
||||
{
|
||||
DWORD retval = flags;
|
||||
|
||||
@@ -882,7 +882,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
|
||||
{
|
||||
if (SetShutdownPrivileges())
|
||||
{
|
||||
flags = WindowsUpdateAdjustShutdwonFlags(flags);
|
||||
flags = WindowsUpdateAdjustShutdownFlags(flags);
|
||||
InitiateShutdown(NULL, NULL, 0, flags, SHTDN_REASON_FLAG_PLANNED);
|
||||
}
|
||||
else
|
||||
@@ -891,7 +891,7 @@ static bool ExecuteShutdownCommand(TMenuID menuCommand)
|
||||
// lets try silent elevate via SystemSettingsAdminFlows (for limited admin users only)
|
||||
if (GetCurrentTokenElevationType() == TokenElevationTypeLimited)
|
||||
{
|
||||
flags = WindowsUpdateAdjustShutdwonFlags(flags);
|
||||
flags = WindowsUpdateAdjustShutdownFlags(flags);
|
||||
|
||||
wchar_t cmdLine[32]{};
|
||||
Sprintf(cmdLine, _countof(cmdLine), L"Shutdown %d %d", flags, SHTDN_REASON_FLAG_PLANNED);
|
||||
|
||||
@@ -349,6 +349,8 @@ END
|
||||
// remains consistent on all systems.
|
||||
IDI_APPICON ICON "..\\..\\Setup\\OpenShell.ico"
|
||||
IDI_APPSICON ICON "apps.ico"
|
||||
IDI_APPSICON10 ICON "apps10.ico"
|
||||
IDI_APPSICON11 ICON "apps11.ico"
|
||||
IDI_BTN_CLASSIC ICON "btn_aero.ico"
|
||||
IDI_START ICON "start.ico"
|
||||
IDI_START10 ICON "start10.ico"
|
||||
|
||||
BIN
Src/StartMenu/StartMenuDLL/apps10.ico
Normal file
BIN
Src/StartMenu/StartMenuDLL/apps10.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
BIN
Src/StartMenu/StartMenuDLL/apps11.ico
Normal file
BIN
Src/StartMenu/StartMenuDLL/apps11.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
@@ -4,6 +4,8 @@
|
||||
//
|
||||
#define IDI_APPICON 1
|
||||
#define IDI_APPSICON 2
|
||||
#define IDI_APPSICON10 3
|
||||
#define IDI_APPSICON11 4
|
||||
#define IDD_RENAME 102
|
||||
#define IDC_EDITNAME 102
|
||||
#define IDD_RENAMER 103
|
||||
|
||||
Reference in New Issue
Block a user