优化代码

This commit is contained in:
2026-05-01 20:38:59 +08:00
parent 02cf10ab13
commit 1217ef7ef9
11 changed files with 5 additions and 13 deletions
@@ -103,7 +103,8 @@ namespace Ink_Canvas
{
case 0: target = iNKORE.UI.WPF.Modern.ElementTheme.Light; break;
case 1: target = iNKORE.UI.WPF.Modern.ElementTheme.Dark; break;
default: target = IsSystemThemeLight()
default:
target = IsSystemThemeLight()
? iNKORE.UI.WPF.Modern.ElementTheme.Light
: iNKORE.UI.WPF.Modern.ElementTheme.Dark; break;
}