mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Added option to never highlight modified settings
Prevents settings from appearing in bold. Does not change the helper text at the bottom of the window.
This commit is contained in:
committed by
Ibuprophen
parent
998d83c15c
commit
daa1d96f12
@@ -3397,6 +3397,9 @@ void CTreeSettingsDlg::UpdateGroup( const CSetting *pModified )
|
||||
bool bDefault=pSetting->IsDefault();
|
||||
const CComVariant &valVar=pSetting->GetValue();
|
||||
|
||||
// check if modified items should be bold
|
||||
bool bBoldSettings=GetSettingBool(L"BoldSettings");
|
||||
|
||||
// calculate text
|
||||
if (pSetting!=m_pEditSetting)
|
||||
{
|
||||
@@ -3479,7 +3482,7 @@ void CTreeSettingsDlg::UpdateGroup( const CSetting *pModified )
|
||||
DeleteDC(hdc);
|
||||
DeleteDC(hdcMask);
|
||||
}
|
||||
int state=bDefault?0:TVIS_BOLD;
|
||||
int state=bDefault||!bBoldSettings?0:TVIS_BOLD; // check if item should be highlighted in bold
|
||||
if (!bEnabled)
|
||||
{
|
||||
if (pSetting->type!=CSetting::TYPE_COLOR) image|=SETTING_STATE_DISABLED;
|
||||
|
||||
@@ -4334,6 +4334,7 @@ CSetting g_Settings[]={
|
||||
{L"ShowNextToTaskbar",CSetting::TYPE_BOOL,IDS_NEXTTASKBAR,IDS_NEXTTASKBAR_TIP,0},
|
||||
{L"PreCacheIcons",CSetting::TYPE_BOOL,IDS_CACHE_ICONS,IDS_CACHE_ICONS_TIP,1,CSetting::FLAG_COLD},
|
||||
{L"DelayIcons",CSetting::TYPE_BOOL,IDS_DELAY_ICONS,IDS_DELAY_ICONS_TIP,1,CSetting::FLAG_COLD},
|
||||
{L"BoldSettings",CSetting::TYPE_BOOL,IDS_BOLD_SETTINGS,IDS_BOLD_SETTINGS_TIP,1},
|
||||
{L"ReportSkinErrors",CSetting::TYPE_BOOL,IDS_SKIN_ERRORS,IDS_SKIN_ERRORS_TIP,0},
|
||||
|
||||
{L"SearchBoxSettings",CSetting::TYPE_GROUP,IDS_SEARCH_BOX},
|
||||
|
||||
@@ -1299,6 +1299,8 @@ STRINGTABLE
|
||||
BEGIN
|
||||
IDS_NO_DBLCLICK "Single-click to open folder shortcuts"
|
||||
IDS_NO_DBLCLICK_TIP "When this is checked, single-clicking shortcuts (links) to folders will open them in explorer. Hovering over the shortcut will still expand sub-menus"
|
||||
IDS_BOLD_SETTINGS "Highlight modified settings"
|
||||
IDS_BOLD_SETTINGS_TIP "When this is checked, settings that have been modified from their defaults will be highlighted in bold"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
|
||||
@@ -762,6 +762,8 @@
|
||||
#define IDS_VERT_OFFSET_TIP 3665
|
||||
#define IDS_NO_DBLCLICK 3666
|
||||
#define IDS_NO_DBLCLICK_TIP 3667
|
||||
#define IDS_BOLD_SETTINGS 3668
|
||||
#define IDS_BOLD_SETTINGS_TIP 3669
|
||||
#define IDS_STRING7001 7001
|
||||
#define IDS_STRING7002 7002
|
||||
#define IDS_STRING7003 7003
|
||||
|
||||
Reference in New Issue
Block a user