From a5df9a778c932f2e2ad96ba0182459ec933e04fd Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 22 Mar 2024 11:15:51 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIGroupBox:=20=E4=BF=AE=E5=A4=8DEnabled?= =?UTF-8?q?=E4=B8=BAfalse=E6=97=B6=E6=A0=87=E9=A2=98=E8=A1=8C=E6=A1=86?= =?UTF-8?q?=E7=BA=BF=E7=BB=98=E5=88=B6=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIGroupBox.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SunnyUI/Controls/UIGroupBox.cs b/SunnyUI/Controls/UIGroupBox.cs index b46ba3e1..5edd346a 100644 --- a/SunnyUI/Controls/UIGroupBox.cs +++ b/SunnyUI/Controls/UIGroupBox.cs @@ -22,6 +22,7 @@ * 2023-05-13: V3.3.6 重构DrawString函数 * 2023-07-11: V3.4.0 解决BackColor,FillColor设置为透明时,标题下面会出现横线 * 2023-07-19: V3.4.1 解决BackColor,FillColor设置为透明时,文本位置与边框线重叠的问题 + * 2024-03-22: V3.6.5 修复Enabled为false时标题行框线绘制颜色 ******************************************************************************/ using System; @@ -112,20 +113,20 @@ namespace Sunny.UI { if (RadiusSides.GetValue(UICornerRadiusSides.LeftTop) && !UIStyles.GlobalRectangle) { - g.DrawLine(RectColor, Radius / 2 * RectSize, TitleTop, textLeft, TitleTop, true, RectSize); + g.DrawLine(GetRectColor(), Radius / 2 * RectSize, TitleTop, textLeft, TitleTop, true, RectSize); } else { - g.DrawLine(RectColor, 0, TitleTop, textLeft, TitleTop, true, RectSize); + g.DrawLine(GetRectColor(), 0, TitleTop, textLeft, TitleTop, true, RectSize); } if (RadiusSides.GetValue(UICornerRadiusSides.RightTop) && !UIStyles.GlobalRectangle) { - g.DrawLine(RectColor, textLeft + size.Width, TitleTop, Width - Radius / 2 * RectSize, TitleTop, true, RectSize); + g.DrawLine(GetRectColor(), textLeft + size.Width, TitleTop, Width - Radius / 2 * RectSize, TitleTop, true, RectSize); } else { - g.DrawLine(RectColor, textLeft + size.Width, TitleTop, Width, TitleTop, true, RectSize); + g.DrawLine(GetRectColor(), textLeft + size.Width, TitleTop, Width, TitleTop, true, RectSize); } } }