improve:计时器UI
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user