mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-17 21:24:47 +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;
|
||||
|
||||
Reference in New Issue
Block a user