ToolStatus: Add missing toolbar theme setting
@@ -44,6 +44,7 @@ INT SelectedTabIndex = 0;
ULONG ProcessesUpdatedCount = 0;
BOOLEAN UpdateAutomatically = TRUE;
BOOLEAN UpdateGraphs = TRUE;
+BOOLEAN EnableThemeSupport = FALSE;
TOOLBAR_DISPLAY_STYLE DisplayStyle = TOOLBAR_DISPLAY_STYLE_SELECTIVETEXT;
SEARCHBOX_DISPLAY_MODE SearchBoxDisplayMode = SEARCHBOX_DISPLAY_MODE_ALWAYSSHOW;
REBAR_DISPLAY_LOCATION RebarDisplayLocation = REBAR_DISPLAY_LOCATION_TOP;
@@ -862,7 +863,7 @@ LRESULT CALLBACK MainWndSubclassProc(
break;
case NM_CUSTOMDRAW:
{
- //if (EnableThemeSupport)
+ if (EnableThemeSupport)
return PhThemeWindowDrawRebar((LPNMCUSTOMDRAW)lParam);
}
break;
@@ -1013,7 +1014,7 @@ LRESULT CALLBACK MainWndSubclassProc(
break;
case NM_CUSTOMDRAW:
{
- //if (EnableThemeSupport)
+ if (EnableThemeSupport)
return PhThemeWindowDrawToolbar((LPNMTBCUSTOMDRAW)lParam);
}
break;
@@ -1342,6 +1343,7 @@ VOID NTAPI LoadCallback(
ToolStatusConfig.Flags = PhGetIntegerSetting(SETTING_NAME_TOOLSTATUS_CONFIG);
DisplayStyle = (TOOLBAR_DISPLAY_STYLE)PhGetIntegerSetting(SETTING_NAME_TOOLBARDISPLAYSTYLE);
SearchBoxDisplayMode = (SEARCHBOX_DISPLAY_MODE)PhGetIntegerSetting(SETTING_NAME_SEARCHBOXDISPLAYMODE);
+ EnableThemeSupport = !!PhGetIntegerSetting(L"EnableThemeSupport");
UpdateGraphs = !PhGetIntegerSetting(L"StartHidden");
ToolbarGraphsInitialize();
