ComponentFactory.Krypton.Toolkit.PaletteOffice2010Black.GetContentShortTextColor1 C# (CSharp) Method

GetContentShortTextColor1() public method

Gets the first back color for the short text.
public GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetContentShortTextColor1(PaletteContentStyle style, PaletteState state)
        {
            switch (style)
            {
                case PaletteContentStyle.ButtonStandalone:
                case PaletteContentStyle.ButtonGallery:
                case PaletteContentStyle.ButtonAlternate:
                case PaletteContentStyle.ButtonCluster:
                case PaletteContentStyle.ButtonCustom1:
                case PaletteContentStyle.ButtonCustom2:
                case PaletteContentStyle.ButtonCustom3:
                    if (state == PaletteState.NormalDefaultOverride)
                        return _schemeColors[(int)SchemeOfficeColors.TextButtonChecked];
                    break;
                case PaletteContentStyle.ButtonNavigatorMini:
                case PaletteContentStyle.ButtonNavigatorStack:
                case PaletteContentStyle.ButtonNavigatorOverflow:
                    if (state == PaletteState.NormalDefaultOverride)
                        return _schemeColors[(int)SchemeOfficeColors.TextButtonChecked];
                    else
                        return _schemeColors[(int)SchemeOfficeColors.ButtonNavigatorText];
                case PaletteContentStyle.HeaderPrimary:
                case PaletteContentStyle.HeaderDockInactive:
                case PaletteContentStyle.HeaderCalendar:
                    if (state != PaletteState.Disabled)
                        return Color.White;
                    break;
            }

            return base.GetContentShortTextColor1(style, state);
        }