* 调整内置主题

This commit is contained in:
Sunny 2022-03-22 14:08:36 +08:00
parent 56e116a8bf
commit db276173e5
4 changed files with 6 additions and 19 deletions

Binary file not shown.

Binary file not shown.

View File

@ -841,6 +841,7 @@ namespace Sunny.UI.Demo
this.uiButton17.Name = "uiButton17"; this.uiButton17.Name = "uiButton17";
this.uiButton17.Radius = 35; this.uiButton17.Radius = 35;
this.uiButton17.Size = new System.Drawing.Size(100, 35); this.uiButton17.Size = new System.Drawing.Size(100, 35);
this.uiButton17.StyleCustomMode = true;
this.uiButton17.TabIndex = 72; this.uiButton17.TabIndex = 72;
this.uiButton17.Text = "Blue"; this.uiButton17.Text = "Blue";
this.uiButton17.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiButton17.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -964,6 +965,7 @@ namespace Sunny.UI.Demo
this.uiButton2.ShowFocusLine = true; this.uiButton2.ShowFocusLine = true;
this.uiButton2.ShowTips = true; this.uiButton2.ShowTips = true;
this.uiButton2.Size = new System.Drawing.Size(100, 35); this.uiButton2.Size = new System.Drawing.Size(100, 35);
this.uiButton2.StyleCustomMode = true;
this.uiButton2.TabIndex = 60; this.uiButton2.TabIndex = 60;
this.uiButton2.Text = "Blue"; this.uiButton2.Text = "Blue";
this.uiButton2.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiButton2.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -972,29 +974,14 @@ namespace Sunny.UI.Demo
// uiButton1 // uiButton1
// //
this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
this.uiButton1.FillColor = System.Drawing.Color.White;
this.uiButton1.FillColor2 = System.Drawing.Color.White;
this.uiButton1.FillHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.uiButton1.FillPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uiButton1.FillSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F); this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.uiButton1.ForeColor = System.Drawing.Color.Black;
this.uiButton1.ForeHoverColor = System.Drawing.Color.Black;
this.uiButton1.ForePressColor = System.Drawing.Color.Black;
this.uiButton1.ForeSelectedColor = System.Drawing.Color.Black;
this.uiButton1.Location = new System.Drawing.Point(30, 85); this.uiButton1.Location = new System.Drawing.Point(30, 85);
this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1); this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
this.uiButton1.Name = "uiButton1"; this.uiButton1.Name = "uiButton1";
this.uiButton1.RectColor = System.Drawing.Color.White;
this.uiButton1.RectHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.uiButton1.RectPressColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uiButton1.RectSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.uiButton1.ShowFocusLine = true; this.uiButton1.ShowFocusLine = true;
this.uiButton1.Size = new System.Drawing.Size(100, 35); this.uiButton1.Size = new System.Drawing.Size(100, 35);
this.uiButton1.Style = Sunny.UI.UIStyle.Gray;
this.uiButton1.StyleCustomMode = true;
this.uiButton1.TabIndex = 59; this.uiButton1.TabIndex = 59;
this.uiButton1.Text = "White"; this.uiButton1.Text = "System";
this.uiButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.uiButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiButton1.TipsText = "1"; this.uiButton1.TipsText = "1";
this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click); this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);

View File

@ -577,9 +577,9 @@ namespace Sunny.UI
{ {
base.Init(UIColor.Blue, UIStyle.Black, Color.White, UIFontColor.Primary); base.Init(UIColor.Blue, UIStyle.Black, Color.White, UIFontColor.Primary);
PrimaryColor = UIColor.Black; PrimaryColor = Color.FromArgb(24, 24, 24);
RectColor = Color.FromArgb(18, 58, 92); RectColor = Color.FromArgb(18, 58, 92);
PlainColor = UIColor.Black; PlainColor = Color.FromArgb(24, 24, 24);
Color ForeColor = Color.White; Color ForeColor = Color.White;
Color[] colors = Color.White.GradientColors(PrimaryColor, 16); Color[] colors = Color.White.GradientColors(PrimaryColor, 16);