From e092bfcbf77d148dc45272535e4c19e18cb0a03c Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 13 Nov 2023 13:52:06 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E9=87=8D=E6=9E=84=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIRichTextBox.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SunnyUI/Controls/UIRichTextBox.cs b/SunnyUI/Controls/UIRichTextBox.cs index d11fbd29..6231713a 100644 --- a/SunnyUI/Controls/UIRichTextBox.cs +++ b/SunnyUI/Controls/UIRichTextBox.cs @@ -22,6 +22,7 @@ * 2022-02-23: V3.1.1 增加了一些原生的属性和事件 * 2022-03-14: V3.1.1 增加滚动条的颜色设置 * 2022-11-03: V3.2.6 增加了可设置垂直滚动条宽度的属性 + * 2023-11-13: V3.5.2 重构主题 ******************************************************************************/ using System; @@ -344,7 +345,6 @@ namespace Sunny.UI { scrollBarColor = value; bar.HoverColor = bar.PressColor = bar.ForeColor = value; - _style = UIStyle.Custom; Invalidate(); } } @@ -363,7 +363,6 @@ namespace Sunny.UI { scrollBarBackColor = value; bar.FillColor = value; - _style = UIStyle.Custom; Invalidate(); } } @@ -517,7 +516,6 @@ namespace Sunny.UI this.FillColor = System.Drawing.Color.White; this.Name = "UIRichTextBox"; this.Padding = new System.Windows.Forms.Padding(2); - this.Style = Sunny.UI.UIStyle.Custom; this.FontChanged += new System.EventHandler(this.UIRichTextBox_FontChanged); this.SizeChanged += new System.EventHandler(this.UIRichTextBox_SizeChanged); this.ResumeLayout(false);