void ThemeOne(IHasSplitterColor splitter) { Color clrSplitter; if (!VSColors.TryGetColor(VSCOLOR_THREEDFACE, out clrSplitter)) { clrSplitter = SystemColors.InactiveBorder; } splitter.SplitterColor = clrSplitter; }
void ThemeOne(SplitContainer panel) { IHasSplitterColor ex = panel as IHasSplitterColor; if (ex != null) { ThemeOne(ex); } if (panel.Parent != null && panel.Font != panel.Parent.Font) { panel.Font = panel.Parent.Font; } Color color; if (ColorSvc.TryGetColor(__VSSYSCOLOREX.VSCOLOR_TOOLWINDOW_BACKGROUND, out color)) { if (panel.BackColor != color) { panel.BackColor = color; panel.Panel1.BackColor = color; panel.Panel2.BackColor = color; } } if (ColorSvc.TryGetColor(__VSSYSCOLOREX.VSCOLOR_TOOLWINDOW_TEXT, out color)) { if (panel.ForeColor != color) { panel.ForeColor = color; panel.Panel1.ForeColor = color; panel.Panel2.ForeColor = color; } } if (panel.BorderStyle == BorderStyle.Fixed3D) { panel.BorderStyle = BorderStyle.FixedSingle; } }