From 52e3a3cb04aa2947573aa1063708c2b23b36138c Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 6 Dec 2023 20:56:40 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIButton:=20=E4=BF=AE=E5=A4=8DLightStyle?= =?UTF-8?q?=E7=9A=84=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIButton.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SunnyUI/Controls/UIButton.cs b/SunnyUI/Controls/UIButton.cs index d50b6eaa..99cc114b 100644 --- a/SunnyUI/Controls/UIButton.cs +++ b/SunnyUI/Controls/UIButton.cs @@ -30,6 +30,7 @@ * 2023-05-12: V3.3.6 重构DrawString函数 * 2023-07-02: V3.3.9 渐变色增加方向选择 * 2023-11-24: V3.6.2 修复LightStyle的文字颜色 + * 2023-12-06: V3.6.2 修复LightStyle的背景颜色 ******************************************************************************/ using System; @@ -96,6 +97,14 @@ namespace Sunny.UI } } + [DefaultValue(typeof(Color), "243, 249, 255")] + [Description("浅色背景"), Category("SunnyUI")] + public Color LightColor + { + get => plainColor; + set => SetPlainColor(value); + } + private bool autoSize; ///