Commit b1518153 HZH

调整颜色

1 个父辈 83bdd806
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(229)))), ((int)(((byte)(250))))); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(229)))), ((int)(((byte)(250)))));
this.Controls.Add(this.ucWave1); this.Controls.Add(this.ucWave1);
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.Name = "UCProcessWave"; this.Name = "UCProcessWave";
this.Size = new System.Drawing.Size(150, 150); this.Size = new System.Drawing.Size(150, 150);
this.ResumeLayout(false); this.ResumeLayout(false);
......
...@@ -118,6 +118,7 @@ namespace HZH_Controls.Controls ...@@ -118,6 +118,7 @@ namespace HZH_Controls.Controls
} }
} }
[Description("值颜色"), Category("自定义")]
public Color ValueColor public Color ValueColor
{ {
get { return this.ucWave1.WaveColor; } get { return this.ucWave1.WaveColor; }
...@@ -127,6 +128,7 @@ namespace HZH_Controls.Controls ...@@ -127,6 +128,7 @@ namespace HZH_Controls.Controls
} }
} }
[Description("边框宽度"), Category("自定义")]
public override int RectWidth public override int RectWidth
{ {
get get
...@@ -189,7 +191,7 @@ namespace HZH_Controls.Controls ...@@ -189,7 +191,7 @@ namespace HZH_Controls.Controls
if (!m_isRectangle) if (!m_isRectangle)
{ {
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡 //这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
SolidBrush solidBrush1 = new SolidBrush(Color.White); SolidBrush solidBrush1 = new SolidBrush(RectColor);
e.Graphics.DrawEllipse(new Pen(solidBrush1, 2), new Rectangle(-1, this.ucWave1.Height - this.Height - 1, this.Width + 2, this.Height + 2)); e.Graphics.DrawEllipse(new Pen(solidBrush1, 2), new Rectangle(-1, this.ucWave1.Height - this.Height - 1, this.Width + 2, this.Height + 2));
} }
string strValue = ((double)m_value / (double)m_maxValue).ToString("0.%"); string strValue = ((double)m_value / (double)m_maxValue).ToString("0.%");
...@@ -216,7 +218,7 @@ namespace HZH_Controls.Controls ...@@ -216,7 +218,7 @@ namespace HZH_Controls.Controls
if (!m_isRectangle) if (!m_isRectangle)
{ {
//这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡 //这里曲线救国,因为设置了控件区域导致的毛边,通过画一个没有毛边的圆遮挡
SolidBrush solidBrush = new SolidBrush(Color.White); SolidBrush solidBrush = new SolidBrush(RectColor);
e.Graphics.DrawEllipse(new Pen(solidBrush, 2), new Rectangle(-1, -1, this.Width + 2, this.Height + 2)); e.Graphics.DrawEllipse(new Pen(solidBrush, 2), new Rectangle(-1, -1, this.Width + 2, this.Height + 2));
} }
string strValue = ((double)m_value / (double)m_maxValue).ToString("0.%"); string strValue = ((double)m_value / (double)m_maxValue).ToString("0.%");
......
...@@ -142,10 +142,11 @@ ...@@ -142,10 +142,11 @@
this.ucProcessWave2.EnabledTheme = false; this.ucProcessWave2.EnabledTheme = false;
this.ucProcessWave2.FillColor = System.Drawing.Color.Empty; this.ucProcessWave2.FillColor = System.Drawing.Color.Empty;
this.ucProcessWave2.Font = new System.Drawing.Font("微软雅黑", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.ucProcessWave2.Font = new System.Drawing.Font("微软雅黑", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucProcessWave2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.ucProcessWave2.IsRadius = false; this.ucProcessWave2.IsRadius = false;
this.ucProcessWave2.IsRectangle = false; this.ucProcessWave2.IsRectangle = false;
this.ucProcessWave2.IsShowRect = true; this.ucProcessWave2.IsShowRect = true;
this.ucProcessWave2.Location = new System.Drawing.Point(910, 261); this.ucProcessWave2.Location = new System.Drawing.Point(702, 206);
this.ucProcessWave2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.ucProcessWave2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucProcessWave2.MaxValue = 100; this.ucProcessWave2.MaxValue = 100;
this.ucProcessWave2.Name = "ucProcessWave2"; this.ucProcessWave2.Name = "ucProcessWave2";
...@@ -163,16 +164,17 @@ ...@@ -163,16 +164,17 @@
this.ucProcessWave1.EnabledTheme = false; this.ucProcessWave1.EnabledTheme = false;
this.ucProcessWave1.FillColor = System.Drawing.Color.Empty; this.ucProcessWave1.FillColor = System.Drawing.Color.Empty;
this.ucProcessWave1.Font = new System.Drawing.Font("微软雅黑", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.ucProcessWave1.Font = new System.Drawing.Font("微软雅黑", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucProcessWave1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.ucProcessWave1.IsRadius = false; this.ucProcessWave1.IsRadius = false;
this.ucProcessWave1.IsRectangle = true; this.ucProcessWave1.IsRectangle = true;
this.ucProcessWave1.IsShowRect = true; this.ucProcessWave1.IsShowRect = true;
this.ucProcessWave1.Location = new System.Drawing.Point(756, 221); this.ucProcessWave1.Location = new System.Drawing.Point(629, 367);
this.ucProcessWave1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.ucProcessWave1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucProcessWave1.MaxValue = 100; this.ucProcessWave1.MaxValue = 100;
this.ucProcessWave1.Name = "ucProcessWave1"; this.ucProcessWave1.Name = "ucProcessWave1";
this.ucProcessWave1.RectColor = System.Drawing.Color.White; this.ucProcessWave1.RectColor = System.Drawing.Color.White;
this.ucProcessWave1.RectWidth = 4; this.ucProcessWave1.RectWidth = 4;
this.ucProcessWave1.Size = new System.Drawing.Size(108, 236); this.ucProcessWave1.Size = new System.Drawing.Size(108, 206);
this.ucProcessWave1.TabIndex = 11; this.ucProcessWave1.TabIndex = 11;
this.ucProcessWave1.Value = 40; this.ucProcessWave1.Value = 40;
this.ucProcessWave1.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232))))); this.ucProcessWave1.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(73)))), ((int)(((byte)(119)))), ((int)(((byte)(232)))));
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!