升级1.6.12,修复了safe handle错误,修复datepicker设置最大/小范围弹窗抖动
This commit is contained in:
parent
607060d0ad
commit
352078c6a2
@ -13,7 +13,7 @@
|
||||
<Copyright>Copyright © 2024 czz_y</Copyright>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<AssemblyVersion>$(Version)</AssemblyVersion>
|
||||
<Version>1.6.11</Version>
|
||||
<Version>1.6.12</Version>
|
||||
<Authors>czz_y</Authors>
|
||||
<Description>基于 Winform UI 框架 AntdUI 设计的 Demo</Description>
|
||||
<PackageProjectUrl>https://gitee.com/mubaiyanghua/antd-uidemo</PackageProjectUrl>
|
||||
@ -30,7 +30,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AntdUI" Version="1.6.11" />
|
||||
<PackageReference Include="AntdUI" Version="1.6.12" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.3" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -16,7 +16,8 @@ namespace AntdUIDemo
|
||||
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||
|
||||
|
||||
AntdUI.Config.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
|
||||
AntdUI.Config.SetCorrectionTextRendering("Microsoft YaHei UI");
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
mainWindow = new MainWindow();
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
<h1>AntdUI Demo</h1>
|
||||
|
||||
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.6.11`
|
||||
本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.6.12`
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -5,6 +5,10 @@ namespace AntdUIDemo.Utils
|
||||
{
|
||||
public class ThemeHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 判断是否浅色
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool IsLightMode()
|
||||
{
|
||||
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize");
|
||||
@ -20,6 +24,11 @@ namespace AntdUIDemo.Utils
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置明暗颜色
|
||||
/// </summary>
|
||||
/// <param name="window"></param>
|
||||
/// <param name="isLight"></param>
|
||||
public static void SetColorMode(AntdUI.Window window, bool isLight)
|
||||
{
|
||||
if (!isLight)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user