public override Color GetElementColor2(PaletteElement element, PaletteState state)
{
if (CommonHelper.IsOverrideState(state))
return Color.Empty;
switch (element)
{
case PaletteElement.TrackBarTick:
return ColorTable.SeparatorDark;
case PaletteElement.TrackBarTrack:
return ColorTable.MenuStripGradientBegin;
case PaletteElement.TrackBarPosition:
switch (state)
{
case PaletteState.Disabled:
return ControlPaint.LightLight(ColorTable.MenuBorder);
case PaletteState.Normal:
return ColorTable.MenuBorder;
case PaletteState.Tracking:
return ColorTable.ButtonSelectedBorder;
case PaletteState.Pressed:
return ColorTable.ButtonPressedBorder;
default:
throw new ArgumentOutOfRangeException("state");
}
default:
// Should never happen!
Debug.Assert(false);
break;
}
return Color.Red;
}