Пример #1
0
        public ButtonFrame.ColorScheme GetColors(ButtonState state)
        {
            var c = new ButtonFrame.ColorScheme
            {
                Alpha       = 0.5f,
                Corners     = CommonColor.Black2,
                TopLeft     = CommonColor.Black2,
                BottomRight = CommonColor.Black2,
                Background  = CommonColor.Black2
            };

            if (state == ButtonState.Hover)
            {
                c.Background = CommonColor.White;
            }

            return(c);
        }
Пример #2
0
        public ButtonFrame.ColorScheme GetColors(ButtonState state)
        {
            var c = new ButtonFrame.ColorScheme {
                Alpha = 0.4f, Corners = CommonColor.Grey8
            };

            switch (state)
            {
            case ButtonState.Normal:
            case ButtonState.ClickedBlurred:
                c.TopLeft     = CommonColor.White;
                c.BottomRight = CommonColor.Black2;
                c.Background  = null;
                break;

            case ButtonState.Hover:
                c.TopLeft     = CommonColor.White;
                c.BottomRight = CommonColor.Black2;
                c.Background  = CommonColor.White;
                break;

            case ButtonState.Clicked:
            case ButtonState.Pressed:
                c.TopLeft     = CommonColor.Black2;
                c.BottomRight = CommonColor.White;
                c.Background  = CommonColor.Black2;
                break;

            case ButtonState.HoverPressed:
                c.TopLeft     = CommonColor.Black2;
                c.BottomRight = CommonColor.White;
                c.Background  = CommonColor.White;
                break;

            default: throw new ArgumentOutOfRangeException();
            }

            return(c);
        }
Пример #3
0
        public ButtonFrame.ColorScheme GetColors(ButtonState state)
        {
            var c = new ButtonFrame.ColorScheme {
                Alpha = 1.0f, Corners = CommonColor.BlueGrey4
            };

            switch (state)
            {
            case ButtonState.Normal:
                c.TopLeft     = CommonColor.BlueGrey6;
                c.BottomRight = CommonColor.BlueGrey3;
                c.Background  = CommonColor.BlueGrey4;
                break;

            case ButtonState.Hover:
                c.TopLeft     = CommonColor.Teal4;
                c.BottomRight = CommonColor.Teal1;
                c.Background  = CommonColor.Teal3;
                break;

            case ButtonState.Clicked:
            case ButtonState.ClickedBlurred:
            case ButtonState.Pressed:
                c.TopLeft     = CommonColor.Teal4;
                c.BottomRight = CommonColor.Teal1;
                c.Background  = CommonColor.Teal3;
                break;

            case ButtonState.HoverPressed:
                c.TopLeft     = CommonColor.Teal4;
                c.BottomRight = CommonColor.Teal1;
                c.Background  = CommonColor.Teal3;
                break;

            default: throw new ArgumentOutOfRangeException();
            }
            return(c);
        }
Пример #4
0
        public ButtonFrame.ColorScheme GetColors(ButtonState state)
        {
            var c = new ButtonFrame.ColorScheme {
                Alpha = 1.0f
            };

            switch (state)
            {
            case ButtonState.Normal:
                c.Corners     = CommonColor.Black2;
                c.TopLeft     = CommonColor.Black2;
                c.BottomRight = CommonColor.Black2;
                c.Background  = CommonColor.Green3;
                break;

            default:
                c.Corners     = CommonColor.BlueGrey5;
                c.TopLeft     = CommonColor.BlueGrey5;
                c.BottomRight = CommonColor.BlueGrey5;
                c.Background  = CommonColor.Green3;
                break;
            }
            return(c);
        }