Skip to content

Commit daa1d96

Browse files
thisismy-githubIbuprophen
authored andcommitted
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.
1 parent 998d83c commit daa1d96

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Src/Lib/SettingsUIHelper.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3397,6 +3397,9 @@ void CTreeSettingsDlg::UpdateGroup( const CSetting *pModified )
33973397
bool bDefault=pSetting->IsDefault();
33983398
const CComVariant &valVar=pSetting->GetValue();
33993399

3400+
// check if modified items should be bold
3401+
bool bBoldSettings=GetSettingBool(L"BoldSettings");
3402+
34003403
// calculate text
34013404
if (pSetting!=m_pEditSetting)
34023405
{
@@ -3479,7 +3482,7 @@ void CTreeSettingsDlg::UpdateGroup( const CSetting *pModified )
34793482
DeleteDC(hdc);
34803483
DeleteDC(hdcMask);
34813484
}
3482-
int state=bDefault?0:TVIS_BOLD;
3485+
int state=bDefault||!bBoldSettings?0:TVIS_BOLD; // check if item should be highlighted in bold
34833486
if (!bEnabled)
34843487
{
34853488
if (pSetting->type!=CSetting::TYPE_COLOR) image|=SETTING_STATE_DISABLED;

Src/StartMenu/StartMenuDLL/SettingsUI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4334,6 +4334,7 @@ CSetting g_Settings[]={
43344334
{L"ShowNextToTaskbar",CSetting::TYPE_BOOL,IDS_NEXTTASKBAR,IDS_NEXTTASKBAR_TIP,0},
43354335
{L"PreCacheIcons",CSetting::TYPE_BOOL,IDS_CACHE_ICONS,IDS_CACHE_ICONS_TIP,1,CSetting::FLAG_COLD},
43364336
{L"DelayIcons",CSetting::TYPE_BOOL,IDS_DELAY_ICONS,IDS_DELAY_ICONS_TIP,1,CSetting::FLAG_COLD},
4337+
{L"BoldSettings",CSetting::TYPE_BOOL,IDS_BOLD_SETTINGS,IDS_BOLD_SETTINGS_TIP,1},
43374338
{L"ReportSkinErrors",CSetting::TYPE_BOOL,IDS_SKIN_ERRORS,IDS_SKIN_ERRORS_TIP,0},
43384339

43394340
{L"SearchBoxSettings",CSetting::TYPE_GROUP,IDS_SEARCH_BOX},

Src/StartMenu/StartMenuDLL/StartMenuDLL.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,8 @@ STRINGTABLE
12991299
BEGIN
13001300
IDS_NO_DBLCLICK "Single-click to open folder shortcuts"
13011301
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"
1302+
IDS_BOLD_SETTINGS "Highlight modified settings"
1303+
IDS_BOLD_SETTINGS_TIP "When this is checked, settings that have been modified from their defaults will be highlighted in bold"
13021304
END
13031305

13041306
#endif // English (U.S.) resources

Src/StartMenu/StartMenuDLL/resource.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@
762762
#define IDS_VERT_OFFSET_TIP 3665
763763
#define IDS_NO_DBLCLICK 3666
764764
#define IDS_NO_DBLCLICK_TIP 3667
765+
#define IDS_BOLD_SETTINGS 3668
766+
#define IDS_BOLD_SETTINGS_TIP 3669
765767
#define IDS_STRING7001 7001
766768
#define IDS_STRING7002 7002
767769
#define IDS_STRING7003 7003

0 commit comments

Comments
 (0)