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:
thisismy-github
2021-08-12 14:28:07 -04:00
committed by Ibuprophen
parent 998d83c15c
commit daa1d96f12
4 changed files with 9 additions and 1 deletions

View File

@@ -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;