public Color GetRibbonTextColor(PaletteState state)
{
Color retColor = _inherit.GetRibbonTextColor(state);
// If empty then try and recover the context specific color
if (retColor == Color.Empty)
retColor = CheckForContextColor(state);
else if ((state == PaletteState.Normal) && LightBackground)
{
// With a light background we force the color to be dark in normal state so it stands out
return Color.FromArgb(Math.Min(retColor.R, (byte)60),
Math.Min(retColor.G, (byte)60),
Math.Min(retColor.B, (byte)60));
}
return retColor;
}