ComponentFactory.Krypton.Toolkit.PaletteOffice2007Base.GetElementColor3 C# (CSharp) Method

GetElementColor3() public method

Gets the third element color.
public GetElementColor3 ( PaletteElement element, PaletteState state ) : Color
element PaletteElement Element for which color is required.
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetElementColor3(PaletteElement element, PaletteState state)
        {
            if (CommonHelper.IsOverrideState(state))
                return Color.Empty;

            switch (element)
            {
                case PaletteElement.TrackBarTick:
                    return _trackBarColors[0];
                case PaletteElement.TrackBarTrack:
                    return _trackBarColors[3];
                case PaletteElement.TrackBarPosition:
                    switch (state)
                    {
                        case PaletteState.Disabled:
                            return ControlPaint.LightLight(_ribbonColors[(int)SchemeOfficeColors.ButtonNormalBack1]);
                        case PaletteState.Normal:
                            return ControlPaint.Light(_ribbonColors[(int)SchemeOfficeColors.ButtonNormalBack1]);
                        case PaletteState.Tracking:
                            return ControlPaint.Light(_buttonBackColors[2]);
                        case PaletteState.Pressed:
                            return ControlPaint.Light(_buttonBackColors[4]);
                        default:
                            throw new ArgumentOutOfRangeException("state");
                    }

                default:
                    // Should never happen!
                    Debug.Assert(false);
                    break;
            }

            return Color.Red;
        }
PaletteOffice2007Base