improve:计时器UI

This commit is contained in:
2025-10-06 14:55:52 +08:00
parent 7c8bdb489b
commit 1b2ea8c522
2 changed files with 19 additions and 2 deletions
@@ -129,6 +129,7 @@ namespace Ink_Canvas
else if (settings.Appearance.Theme == 1) // 深色主题
{
iNKORE.UI.WPF.Modern.ThemeManager.SetRequestedTheme(this, iNKORE.UI.WPF.Modern.ElementTheme.Dark);
SetDarkThemeBorder();
}
else // 跟随系统主题
{
@@ -140,6 +141,7 @@ namespace Ink_Canvas
else
{
iNKORE.UI.WPF.Modern.ThemeManager.SetRequestedTheme(this, iNKORE.UI.WPF.Modern.ElementTheme.Dark);
SetDarkThemeBorder();
}
}
}
@@ -692,5 +694,20 @@ namespace Ink_Canvas
// 如果保存到注册表失败,静默处理
}
}
// 设置深色主题下的灰色边框
private void SetDarkThemeBorder()
{
try
{
if (MainBorder != null)
{
MainBorder.BorderBrush = new SolidColorBrush(Color.FromRgb(64, 64, 64));
}
}
catch
{
}
}
}
}