* 重构主题

This commit is contained in:
Sunny 2023-11-13 13:52:06 +08:00
parent b6bb47f2fd
commit e092bfcbf7

View File

@ -22,6 +22,7 @@
* 2022-02-23: V3.1.1 * 2022-02-23: V3.1.1
* 2022-03-14: V3.1.1 * 2022-03-14: V3.1.1
* 2022-11-03: V3.2.6 * 2022-11-03: V3.2.6
* 2023-11-13: V3.5.2
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -344,7 +345,6 @@ namespace Sunny.UI
{ {
scrollBarColor = value; scrollBarColor = value;
bar.HoverColor = bar.PressColor = bar.ForeColor = value; bar.HoverColor = bar.PressColor = bar.ForeColor = value;
_style = UIStyle.Custom;
Invalidate(); Invalidate();
} }
} }
@ -363,7 +363,6 @@ namespace Sunny.UI
{ {
scrollBarBackColor = value; scrollBarBackColor = value;
bar.FillColor = value; bar.FillColor = value;
_style = UIStyle.Custom;
Invalidate(); Invalidate();
} }
} }
@ -517,7 +516,6 @@ namespace Sunny.UI
this.FillColor = System.Drawing.Color.White; this.FillColor = System.Drawing.Color.White;
this.Name = "UIRichTextBox"; this.Name = "UIRichTextBox";
this.Padding = new System.Windows.Forms.Padding(2); this.Padding = new System.Windows.Forms.Padding(2);
this.Style = Sunny.UI.UIStyle.Custom;
this.FontChanged += new System.EventHandler(this.UIRichTextBox_FontChanged); this.FontChanged += new System.EventHandler(this.UIRichTextBox_FontChanged);
this.SizeChanged += new System.EventHandler(this.UIRichTextBox_SizeChanged); this.SizeChanged += new System.EventHandler(this.UIRichTextBox_SizeChanged);
this.ResumeLayout(false); this.ResumeLayout(false);