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
@@ -1212,7 +1212,7 @@ namespace Ink_Canvas
SetTheme("Dark");
break;
case 2: // 跟随系统
if (IsSystemThemeLight())
if (ThemeHelper.IsSystemThemeLight())
{
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Light;
SetTheme("Light");
@@ -3265,7 +3265,7 @@ namespace Ink_Canvas
ViewboxFloatingBar.Opacity = 1.0;
break;
case 2: // 跟随系统
if (IsSystemThemeLight())
if (ThemeHelper.IsSystemThemeLight())
{
SetTheme("Light", true);
ViewboxFloatingBar.Opacity = 1.0;