升级1.6.12,修复了safe handle错误,修复datepicker设置最大/小范围弹窗抖动
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user