From 1e03aed0a7d4e02675779e5435650f1edc949394 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 10 Jul 2024 11:07:00 +0800 Subject: [PATCH] =?UTF-8?q?*=20UILabel:=20=E6=96=87=E5=AD=97=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=BB=98=E8=AE=A4TopLeft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Common/UFile.cs | 2 +- SunnyUI/Controls/UILabel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SunnyUI/Common/UFile.cs b/SunnyUI/Common/UFile.cs index 729cd471..5b9d8d9c 100644 --- a/SunnyUI/Common/UFile.cs +++ b/SunnyUI/Common/UFile.cs @@ -43,7 +43,7 @@ namespace Sunny.UI /// /// /// - public static bool Copy(this string sourceFileName, string targetFileName, bool bFailIfExists = true) + public static bool Copy(string sourceFileName, string targetFileName, bool bFailIfExists = true) { if (File.Exists(sourceFileName)) { diff --git a/SunnyUI/Controls/UILabel.cs b/SunnyUI/Controls/UILabel.cs index 1dd6b575..c3378581 100644 --- a/SunnyUI/Controls/UILabel.cs +++ b/SunnyUI/Controls/UILabel.cs @@ -22,6 +22,7 @@ * 2020-11-12: V3.0.8 增加文字旋转角度 * 2022-03-19: V3.1.1 重构主题配色 * 2023-11-16: V3.5.2 重构主题 + * 2024-07-10: V3.6.7 文字位置默认TopLeft ******************************************************************************/ using System.ComponentModel; @@ -39,7 +40,6 @@ namespace Sunny.UI { base.Font = UIStyles.Font(); Version = UIGlobal.Version; - base.TextAlign = ContentAlignment.MiddleLeft; ForeColor = UIStyles.Blue.LabelForeColor; }