From 579d96700304dc430f93d6f0cea9133a9fc2556a Mon Sep 17 00:00:00 2001 From: "SONGE9B3\\song_pd_win11" Date: Tue, 10 Jan 2023 15:27:24 +0800 Subject: [PATCH] perf: replace hardcodet by forms notifyicon(win11 will have a better experience) --- README.md | 1 + STranslate/STranslate.csproj | 3 -- STranslate/View/MainWindow.xaml | 34 ++---------- STranslate/View/MainWindow.xaml.cs | 85 ++++++++++++++++++++++++++++-- STranslate/ViewModel/MainVM.cs | 72 ++----------------------- STranslate/packages.config | 1 - 6 files changed, 90 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index 86521ab..cbf58e7 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ 2. 软件内快捷键 - `ESC` 隐藏界面 - `Ctrl+Shift+Q` 退出程序 +- `Ctrl+Shift+R` 切换主题 - `Ctrl+Shift+T` 置顶/取消置顶 点击软件外部界面任意处或点击软件则会自动隐藏到后台,即用即走。 diff --git a/STranslate/STranslate.csproj b/STranslate/STranslate.csproj index 15053f8..2ce6377 100644 --- a/STranslate/STranslate.csproj +++ b/STranslate/STranslate.csproj @@ -53,9 +53,6 @@ Images\translate.ico - - ..\packages\Hardcodet.NotifyIcon.Wpf.1.1.0\lib\net472\Hardcodet.NotifyIcon.Wpf.dll - ..\packages\Microsoft.Xaml.Behaviors.Wpf.1.1.39\lib\net45\Microsoft.Xaml.Behaviors.dll diff --git a/STranslate/View/MainWindow.xaml b/STranslate/View/MainWindow.xaml index 32e3dfe..c6e7957 100644 --- a/STranslate/View/MainWindow.xaml +++ b/STranslate/View/MainWindow.xaml @@ -20,29 +20,6 @@ Width="400" Icon="/Images/translate.ico"> - - - - - - - - - - - - + @@ -74,14 +54,6 @@ - - -