refactor(主题): 将主题相关逻辑提取到ThemeHelper类中

This commit is contained in:
2026-05-01 22:05:30 +08:00
parent 8c7eeb51d0
commit 41a59136c7
5 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
using iNKORE.UI.WPF.Modern;
using Ink_Canvas.Helpers;
using iNKORE.UI.WPF.Modern;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
@@ -153,7 +153,7 @@ namespace Ink_Canvas
private bool IsCurrentThemeDark()
{
return Settings.Appearance.Theme == 1 ||
(Settings.Appearance.Theme == 2 && !IsSystemThemeLight());
(Settings.Appearance.Theme == 2 && !ThemeHelper.IsSystemThemeLight());
}
private void RefreshFloatingBarButtonColors()