优化代码

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
-1
View File
@@ -5,7 +5,6 @@ using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Threading;
namespace Ink_Canvas.Controls
{
@@ -1,5 +1,4 @@
using Ink_Canvas.Properties;
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
@@ -1,10 +1,10 @@
using Ink_Canvas.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using Ink_Canvas.Helpers;
namespace Ink_Canvas.Controls.Toolbar
{
+1 -1
View File
@@ -1,8 +1,8 @@
using Ink_Canvas.Controls;
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
using Ink_Canvas.Controls;
namespace Ink_Canvas.Helpers
{
-2
View File
@@ -1,8 +1,6 @@
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Threading;
namespace Ink_Canvas.Helpers
-1
View File
@@ -12,7 +12,6 @@ using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
-2
View File
@@ -12,9 +12,7 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Ink;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Threading;
@@ -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;
}
@@ -1,5 +1,4 @@
using Ink_Canvas.Helpers;
using Ink_Canvas.Windows;
using Ink_Canvas.Windows.SettingsViews.Helpers;
using System;
using System.Collections.Generic;
@@ -4,8 +4,8 @@ using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Page = iNKORE.UI.WPF.Modern.Controls.Page;
using MessageBox = iNKORE.UI.WPF.Modern.Controls.MessageBox;
using Page = iNKORE.UI.WPF.Modern.Controls.Page;
namespace Ink_Canvas.Windows.SettingsViews.Pages
{
@@ -9,7 +9,6 @@ using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using MessageBox = iNKORE.UI.WPF.Modern.Controls.MessageBox;