优化代码
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user