Esempio n. 1
0
        public MessageBox()
            : base()
        {
            Gradient = new Gradient()
            {
                FromColor = new G3Color(107, 162, 182),
                ToColor = new G3Color(201, 224, 232),
                UseAlpha = false
            };

            TitleGradient = new Gradient()
            {
                FromColor = new G3Color(18, 73, 130),
                ToColor = new G3Color(37, 111, 158),
                UseAlpha = false
            };

            int w = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width / 5 * 3;
            int h = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height / 2;

            int x = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width / 5;
            int y = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height / 4;

            this.Location = new Point(x, y);
            this.Size = new Size(w, h);
        }
Esempio n. 2
0
 public GradientLabel()
     : base()
 {
     this.FontStyle = new CompoundFont(null, G3Color.WHITE, G3Color.BLACK);
     Border = new Border() { Color = G3Color.GRAY, Enabled = false };
     Gradient = new Gradient();
 }
        public GradientButton()
            : base()
        {
            this.FontStyle = new CompoundFont(null, G3Color.GRAY, G3Color.WHITE);

            MaskImageColor = G3Color.FromRGB(238, 28, 36);

            Border = new Border() { Color = G3Color.GRAY, Enabled = false };

            TextAlign = TextAlign.Center;

            Gradient = new Gradient()
            {
                FromColor = G3Color.FromRGB(247, 243, 247),
                ToColor = G3Color.FromRGB(156, 154, 156),
                UseAlpha = false
            };
        }
Esempio n. 4
0
        public Keyboard()
            : base()
        {
            SPACE_BETWEEN_BUTTONS = 5;
            AutoConnectFocusedTextbox = true;

            ControlButtonsGradient = new Gradient()
            {
                FromColor = G3Color.FromRGB(166, 52, 0),
                ToColor = G3Color.BLACK,
                UseAlpha = false
            };

            AlfanumericButtonsGradient = new Gradient()
            {
                FromColor = G3Color.FromRGB(247, 243, 247),
                ToColor = G3Color.FromRGB(156, 154, 156),
                UseAlpha = false
            };

            this.FontStyle = new CompoundFont(null, G3Color.WHITE, G3Color.BLACK);
        }