ComponentFactory.Krypton.Toolkit.PaletteProfessionalSystem.GetElementColor4 C# (CSharp) Method

GetElementColor4() public method

Gets the fourth element color.
public GetElementColor4 ( 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 GetElementColor4(PaletteElement element, PaletteState state)
        {
            switch (element)
            {
                case PaletteElement.TrackBarTick:
                    if (CommonHelper.IsOverrideState(state))
                        return Color.Empty;

                    return ColorTable.SeparatorDark;
                case PaletteElement.TrackBarTrack:
                    if (CommonHelper.IsOverrideState(state))
                        return Color.Empty;

                    return SystemColors.Control;
                case PaletteElement.TrackBarPosition:
                    if (CommonHelper.IsOverrideStateExclude(state, PaletteState.FocusOverride))
                        return Color.Empty;

                    switch (state)
                    {
                        case PaletteState.Disabled:
                            return ControlPaint.LightLight(ColorTable.MenuStripGradientEnd);
                        case PaletteState.Normal:
                            return ColorTable.MenuStripGradientEnd;
                        case PaletteState.Tracking:
                        case PaletteState.FocusOverride:
                            return ColorTable.ButtonSelectedGradientBegin;
                        case PaletteState.Pressed:
                            return ColorTable.ButtonPressedGradientBegin;
                        default:
                            throw new ArgumentOutOfRangeException("state");
                    }
                default:
                    // Should never happen!
                    Debug.Assert(false);
                    break;
            }

            return Color.Red;
        }
PaletteProfessionalSystem