mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-15 05:08:31 +10:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9606e11e0e | ||
|
|
7f04293361 | ||
|
|
e6b33a70e4 |
@@ -17,7 +17,7 @@
|
|||||||
### Download
|
### Download
|
||||||
If you just want to use it or looking for setup file, click here to download:
|
If you just want to use it or looking for setup file, click here to download:
|
||||||
|
|
||||||
[](https://github.com/Open-Shell/Open-Shell-Menu/releases)
|
[](https://github.com/Open-Shell/Open-Shell-Menu/releases/latest)
|
||||||
|
|
||||||
### Temporary Translation/Language Solution
|
### Temporary Translation/Language Solution
|
||||||
1. Download [language DLL](https://coddec.github.io/Classic-Shell/www.classicshell.net/translations/index.html)
|
1. Download [language DLL](https://coddec.github.io/Classic-Shell/www.classicshell.net/translations/index.html)
|
||||||
|
|||||||
@@ -561,6 +561,7 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpstrC
|
|||||||
else if (wcsstr(lpstrCmdLine,L"-toggle")!=NULL) open=MSG_TOGGLE;
|
else if (wcsstr(lpstrCmdLine,L"-toggle")!=NULL) open=MSG_TOGGLE;
|
||||||
else if (wcsstr(lpstrCmdLine,L"-open")!=NULL) open=MSG_OPEN;
|
else if (wcsstr(lpstrCmdLine,L"-open")!=NULL) open=MSG_OPEN;
|
||||||
else if (wcsstr(lpstrCmdLine,L"-settings")!=NULL) open=MSG_SETTINGS;
|
else if (wcsstr(lpstrCmdLine,L"-settings")!=NULL) open=MSG_SETTINGS;
|
||||||
|
else if (wcsstr(lpstrCmdLine,L"-reloadsettings")!=NULL) open=MSG_RELOADSETTINGS;
|
||||||
else if (wcsstr(lpstrCmdLine,L"-exit")!=NULL) open=MSG_EXIT;
|
else if (wcsstr(lpstrCmdLine,L"-exit")!=NULL) open=MSG_EXIT;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1071,7 +1071,7 @@ void CMenuContainer::AddStandardItems( void )
|
|||||||
const StdMenuItem *pInlineParent=NULL;
|
const StdMenuItem *pInlineParent=NULL;
|
||||||
int searchProviderIndex=-1;
|
int searchProviderIndex=-1;
|
||||||
m_SearchProvidersCount=0;
|
m_SearchProvidersCount=0;
|
||||||
MenuSkin::TIconSize mainIconSize=s_Skin.Main_icon_size;
|
bool bSecondColumn=false;
|
||||||
for (const StdMenuItem *pStdItem=m_pStdItem;;pStdItem++)
|
for (const StdMenuItem *pStdItem=m_pStdItem;;pStdItem++)
|
||||||
{
|
{
|
||||||
if (pStdItem->id==MENU_LAST)
|
if (pStdItem->id==MENU_LAST)
|
||||||
@@ -1089,9 +1089,8 @@ void CMenuContainer::AddStandardItems( void )
|
|||||||
if (m_bSubMenu && pStdItem->id==s_ShutdownCommand)
|
if (m_bSubMenu && pStdItem->id==s_ShutdownCommand)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const bool bTwoColumns = (!m_bSubMenu && s_Skin.TwoColumns);
|
if (pStdItem->id==MENU_COLUMN_BREAK && !m_bSubMenu && s_Skin.TwoColumns)
|
||||||
if (pStdItem->id==MENU_COLUMN_BREAK && bTwoColumns)
|
bSecondColumn=true;
|
||||||
mainIconSize=s_Skin.Main2_icon_size;
|
|
||||||
|
|
||||||
int stdOptions=GetStdOptions(pStdItem->id);
|
int stdOptions=GetStdOptions(pStdItem->id);
|
||||||
if (!(stdOptions&MENU_ENABLED)) continue;
|
if (!(stdOptions&MENU_ENABLED)) continue;
|
||||||
@@ -1272,6 +1271,10 @@ void CMenuContainer::AddStandardItems( void )
|
|||||||
item.bSplit=item.bFolder && (item.pStdItem->settings&StdMenuItem::MENU_SPLIT_BUTTON)!=0;
|
item.bSplit=item.bFolder && (item.pStdItem->settings&StdMenuItem::MENU_SPLIT_BUTTON)!=0;
|
||||||
|
|
||||||
// get icon
|
// get icon
|
||||||
|
MenuSkin::TIconSize mainIconSize=!bSecondColumn ? s_Skin.Main_icon_size : s_Skin.Main2_icon_size;
|
||||||
|
if (item.bInline && mainIconSize==MenuSkin::ICON_SIZE_NONE)
|
||||||
|
mainIconSize=s_Skin.Main_icon_size;
|
||||||
|
|
||||||
CItemManager::TIconSizeType iconSizeType;
|
CItemManager::TIconSizeType iconSizeType;
|
||||||
int refreshFlags;
|
int refreshFlags;
|
||||||
if (bSearchProvider7 || m_bSubMenu)
|
if (bSearchProvider7 || m_bSubMenu)
|
||||||
|
|||||||
Reference in New Issue
Block a user