From fc59df03fe64e29dea710f33c999a067ea986372 Mon Sep 17 00:00:00 2001 From: Sunny Date: Sat, 2 Apr 2022 23:39:10 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIForm=E3=80=81UIUserControl:=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=AE=BE=E7=BD=AEAutoScaleMode=E4=B8=BANone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Common/UTranslate.cs | 1 - SunnyUI/Style/UIStyle.cs | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/SunnyUI/Common/UTranslate.cs b/SunnyUI/Common/UTranslate.cs index 0d226310..5a652b39 100644 --- a/SunnyUI/Common/UTranslate.cs +++ b/SunnyUI/Common/UTranslate.cs @@ -19,7 +19,6 @@ * 2021-07-23: V3.0.5 增加文件说明 ******************************************************************************/ - namespace Sunny.UI { public interface ITranslate diff --git a/SunnyUI/Style/UIStyle.cs b/SunnyUI/Style/UIStyle.cs index e80f1452..07bb8fc1 100644 --- a/SunnyUI/Style/UIStyle.cs +++ b/SunnyUI/Style/UIStyle.cs @@ -113,16 +113,19 @@ namespace Sunny.UI /// /// LayuiGreen /// + [DisplayText("LayuiGreen")] LayuiGreen = 7, /// /// LayuiRed /// + [DisplayText("LayuiRed")] LayuiRed = 8, /// /// LayuiOrange /// + [DisplayText("LayuiOrange")] LayuiOrange = 9, /// @@ -183,7 +186,7 @@ namespace Sunny.UI /// /// 灰 /// - private static readonly UIBaseStyle Gray = new UIGrayStyle(); + public static readonly UIBaseStyle Gray = new UIGrayStyle(); /// /// 绿 @@ -198,17 +201,17 @@ namespace Sunny.UI /// /// 深蓝 /// - private static readonly UIBaseStyle DarkBlue = new UIDarkBlueStyle(); + public static readonly UIBaseStyle DarkBlue = new UIDarkBlueStyle(); /// /// 黑 /// - private static readonly UIBaseStyle Black = new UIBlackStyle(); + public static readonly UIBaseStyle Black = new UIBlackStyle(); /// /// 紫 /// - private static readonly UIBaseStyle Purple = new UIPurpleStyle(); + public static readonly UIBaseStyle Purple = new UIPurpleStyle(); /// /// 多彩