public override Color GetBackColor1(PaletteBackStyle style, PaletteState state)
{
// Only override system palette if a recognized office 2003 color scheme is used
if (_usingOffice2003)
{
switch (style)
{
case PaletteBackStyle.ContextMenuItemHighlight:
switch (state)
{
case PaletteState.Disabled:
return SystemColors.Control;
case PaletteState.Normal:
return Color.Empty;
case PaletteState.Tracking:
return ColorTable.MenuItemSelectedGradientBegin;
}
break;
case PaletteBackStyle.HeaderDockInactive:
if (state == PaletteState.Disabled)
return SystemColors.Control;
else
return ColorTable.ButtonCheckedHighlight;
case PaletteBackStyle.HeaderDockActive:
if (state == PaletteState.Disabled)
return SystemColors.Control;
else
return SystemColors.Highlight;
}
}
return base.GetBackColor1(style, state);
}