From 81c59495c0d0a4ba5bce4489b5ed7550f47eee24 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Sat, 23 Aug 2025 21:12:57 -0400 Subject: [PATCH] improvement --- .../BetterLyrics.WinUI3/App.xaml | 1 + .../AlbumArtLayoutSettingsControl.xaml | 9 ++ .../Controls/AppSettingsControl.xaml | 118 ++++++++++++++++++ .../Controls/AppSettingsControl.xaml.cs | 31 +++++ .../Converter/RectToMarginConverter.cs | 26 ++++ .../Helper/MonitorHelper.cs | 13 +- .../BetterLyrics.WinUI3/Models/LiveStates.cs | 35 ++++++ .../Models/Settings/AlbumArtLayoutSettings.cs | 1 + .../Models/Settings/AppSettings.cs | 2 +- .../Models/WindowBoundsRecord.cs | 19 +++ .../SettingsService/SettingsService.cs | 3 + .../Strings/en-US/Resources.resw | 18 +++ .../Strings/ja-JP/Resources.resw | 18 +++ .../Strings/ko-KR/Resources.resw | 18 +++ .../Strings/zh-CN/Resources.resw | 18 +++ .../Strings/zh-TW/Resources.resw | 18 +++ .../ViewModels/AppSettingsControlViewModel.cs | 23 +++- .../LyricsRendererViewModel.Messages.cs | 4 + .../LyricsRendererViewModel.Update.cs | 8 +- .../LyricsRendererViewModel.cs | 2 + .../Views/LyricsWindow.xaml.cs | 9 ++ 21 files changed, 390 insertions(+), 4 deletions(-) create mode 100644 BetterLyrics.WinUI3/BetterLyrics.WinUI3/Converter/RectToMarginConverter.cs create mode 100644 BetterLyrics.WinUI3/BetterLyrics.WinUI3/Models/WindowBoundsRecord.cs diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml index ea0a51b..2e128b6 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml @@ -58,6 +58,7 @@ + diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AlbumArtLayoutSettingsControl.xaml b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AlbumArtLayoutSettingsControl.xaml index e41f721..e84f02a 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AlbumArtLayoutSettingsControl.xaml +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AlbumArtLayoutSettingsControl.xaml @@ -46,6 +46,15 @@ + + + + diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AppSettingsControl.xaml b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AppSettingsControl.xaml index e4bd23a..a047512 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AppSettingsControl.xaml +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AppSettingsControl.xaml @@ -62,6 +62,124 @@ + + + + + + + + + + + +