From ff8c85b2d0a0eb3c0f661083124404e7f68e94bc Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Tue, 22 Jul 2025 20:36:52 -0400 Subject: [PATCH] fix playbackservice --- .../BetterLyrics.WinUI3/App.xaml | 16 +- .../Helper/CollectionHelper.cs | 43 ++++ .../Models/GroupInfoList.cs | 18 ++ .../Services/LyricsSearchService.cs | 112 ++++---- .../Services/PlaybackService.cs | 101 ++++---- .../Services/TranslateService.cs | 12 +- .../ViewModels/LyricsPageViewModel.cs | 1 + .../LyricsRendererViewModel.Draw.cs | 3 +- .../LyricsRendererViewModel.Messages.cs | 1 - .../ViewModels/LyricsRendererViewModel.cs | 7 +- .../ViewModels/MusicGalleryViewModel.cs | 16 +- .../BetterLyrics.WinUI3/Views/LyricsPage.xaml | 6 +- .../Views/LyricsPage.xaml.cs | 10 +- .../Views/MusicGalleryPage.xaml | 243 ++++++++++-------- .../Views/MusicGalleryPage.xaml.cs | 15 ++ 15 files changed, 353 insertions(+), 251 deletions(-) create mode 100644 BetterLyrics.WinUI3/BetterLyrics.WinUI3/Helper/CollectionHelper.cs create mode 100644 BetterLyrics.WinUI3/BetterLyrics.WinUI3/Models/GroupInfoList.cs diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml index a20901d..7d260d4 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/App.xaml @@ -302,7 +302,7 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - + - - + - - + - - + - - - - - - + - - - + + - - - + + - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -184,6 +216,5 @@ - diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryPage.xaml.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryPage.xaml.cs index 186d25a..0c7eebd 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryPage.xaml.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryPage.xaml.cs @@ -41,5 +41,20 @@ namespace BetterLyrics.WinUI3.Views { ViewModel.RefreshSongs(); } + + private void SongSearchBox_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args) + { + + } + + private void SongSearchBox_SuggestionChosen(AutoSuggestBox sender, AutoSuggestBoxSuggestionChosenEventArgs args) + { + + } + + private void SongSearchBox_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args) + { + + } } }