CustomChrome.VisualStudioFormChrome.GetBackColor C# (CSharp) Method

GetBackColor() private method

private GetBackColor ( bool enabled, ChromeButtonState state ) : Color
enabled bool
state ChromeButtonState
return Color
        internal Color GetBackColor(bool enabled, ChromeButtonState state)
        {
            if (!enabled)
                return SystemColors.Control;

            switch (state)
            {
                case ChromeButtonState.Over: return Color.White;
                case ChromeButtonState.Down: return _primaryColor;
                default: return SystemColors.Control;
            }
        }