ComponentFactory.Krypton.Ribbon.PaletteRibbonContextDouble.GetRibbonTextColor C# (CSharp) Méthode

GetRibbonTextColor() public méthode

Gets the tab color for the item text.
public GetRibbonTextColor ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
Résultat Color
        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;
        }