From 32e91d6d231248ef832da32ad048824998d872f7 Mon Sep 17 00:00:00 2001 From: BookerLiu Date: Fri, 7 Mar 2025 10:59:39 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=83=8C=E6=99=AF=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Constant/Constants.cs | 4 +- Constant/DictConst.cs | 17 ++++++ Control/Other/BGNmaeDialog.xaml | 34 ++++++++++++ Control/Other/BGNmaeDialog.xaml.cs | 42 ++++++++++++++ Control/Other/GradientBGDialog.xaml | 21 +++++-- Control/Other/GradientBGDialog.xaml.cs | 46 ++++++++++++++-- Control/UserControls/Config/ThemeControl.xaml | 20 ++++++- .../UserControls/Config/ThemeControl.xaml.cs | 12 +++- .../PannelCard/LeftCardControl.xaml.cs | 10 ++++ .../PannelCard/RightCardControl.xaml | 14 ++++- .../PannelCard/RightCardControl.xaml.cs | 51 ++++++++++++++++- Control/Windows/ConfigWindow.xaml | 4 ++ Converts/TextToColorConverter.cs | 30 ++++++++++ Converts/ValueConvert.cs | 32 +++++++++++ GeekDesk.csproj | 11 ++++ Plugins/ShowSeconds/SecondsWindow.xaml.cs | 20 +++---- Task/BakTask.cs | 5 +- Util/CommonCode.cs | 3 +- Util/DeepCopyUtil.cs | 28 ++++++++++ Util/ProcessUtil.cs | 8 +-- ViewModel/AppConfig.cs | 55 +++++++++++++++++-- ViewModel/GradientBGParam.cs | 18 +++++- ViewModel/IconInfo.cs | 17 +++++- ViewModel/Temp/GradientBGParamList.cs | 6 +- 24 files changed, 461 insertions(+), 47 deletions(-) create mode 100644 Constant/DictConst.cs create mode 100644 Control/Other/BGNmaeDialog.xaml create mode 100644 Control/Other/BGNmaeDialog.xaml.cs create mode 100644 Converts/TextToColorConverter.cs create mode 100644 Converts/ValueConvert.cs create mode 100644 Util/DeepCopyUtil.cs diff --git a/Constant/Constants.cs b/Constant/Constants.cs index 63b9510..513ddd5 100644 --- a/Constant/Constants.cs +++ b/Constant/Constants.cs @@ -29,8 +29,8 @@ namespace GeekDesk.Constant public static string PW_FILE_BAK_PATH = APP_DIR + "bak\\pw.txt"; //密码文件路径 - - public static string UUID_FILE_BAK_PATH = APP_DIR + "bak\\uuid.txt"; //密码文件路径 + + public static string UUID_FILE_BAK_PATH = APP_DIR + "bak\\uuid.txt"; //uuid文件路径 public static string LOG_FILE_PATH = APP_DIR + "logs\\log.log"; //日志文件 diff --git a/Constant/DictConst.cs b/Constant/DictConst.cs new file mode 100644 index 0000000..221600e --- /dev/null +++ b/Constant/DictConst.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace GeekDesk.Constant +{ + public class DictConst + { + public static readonly Dictionary batchMenuHeaderDict = new Dictionary(); + static DictConst() { + batchMenuHeaderDict.Add(true, "取消批量操作"); + batchMenuHeaderDict.Add(false, "批量操作"); + } + } +} diff --git a/Control/Other/BGNmaeDialog.xaml b/Control/Other/BGNmaeDialog.xaml new file mode 100644 index 0000000..772ea71 --- /dev/null +++ b/Control/Other/BGNmaeDialog.xaml @@ -0,0 +1,34 @@ + + + + + + + +