From a4fc457065cea23eb60f0b30a3d1777516ce807e Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Thu, 11 Dec 2025 07:44:20 -0500 Subject: [PATCH] chores: bump to v1.1.181.0 --- .../Package.appxmanifest | 2 +- .../BetterLyrics.WinUI3/Constants/Link.cs | 4 ++-- .../Controls/AboutControl.xaml.cs | 1 - .../BetterLyrics.WinUI3/Enums/TaskbarPlacement.cs | 6 +----- .../Events/TaskbarFreeBoundsChangedEventArgs.cs | 2 -- .../Extensions/RectangleExtensions.cs | 5 +---- .../BetterLyrics.WinUI3/Hooks/TaskbarHook.cs | 2 -- .../BetterLyrics.WinUI3/Hooks/WindowHook.cs | 1 - .../MediaSessionsService/IMediaSessionsService.cs | 1 - .../MediaSessionsService.AlbumArtUpdater.cs | 13 ++++++------- .../ViewModels/AboutControlViewModel.cs | 3 --- .../Views/MusicGalleryWindow.xaml.cs | 1 - .../Views/NowPlayingWindow.xaml.cs | 5 ----- 13 files changed, 11 insertions(+), 35 deletions(-) diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3 (Package)/Package.appxmanifest b/BetterLyrics.WinUI3/BetterLyrics.WinUI3 (Package)/Package.appxmanifest index 9b97c2a..594a05a 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3 (Package)/Package.appxmanifest +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3 (Package)/Package.appxmanifest @@ -12,7 +12,7 @@ + Version="1.1.181.0" /> diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Constants/Link.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Constants/Link.cs index f8c1e36..dd3460a 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Constants/Link.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Constants/Link.cs @@ -5,9 +5,9 @@ public const string MicrosoftStore = "https://apps.microsoft.com/detail/9p1wcd1p597r"; public const string AuthorGitHub = "https://github.com/jayfunc"; - + public const string BetterLyricsGitHub = $"{AuthorGitHub}/BetterLyrics"; - + public const string ShareHub = $"{BetterLyricsGitHub}/blob/dev/ShareHub/index.md"; public const string TermsOfService = $"{BetterLyricsGitHub}/blob/dev/TermsofService.md"; public const string PrivacyPolicy = $"{BetterLyricsGitHub}/blob/dev/PrivacyPolicy.md"; diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AboutControl.xaml.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AboutControl.xaml.cs index 52d7b7c..8ded046 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AboutControl.xaml.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Controls/AboutControl.xaml.cs @@ -3,7 +3,6 @@ using CommunityToolkit.Mvvm.DependencyInjection; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; using System.Threading.Tasks; -using Windows.UI.ApplicationSettings; // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Enums/TaskbarPlacement.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Enums/TaskbarPlacement.cs index 9bfe71f..925deef 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Enums/TaskbarPlacement.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Enums/TaskbarPlacement.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace BetterLyrics.WinUI3.Enums +namespace BetterLyrics.WinUI3.Enums { public enum TaskbarPlacement { diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Events/TaskbarFreeBoundsChangedEventArgs.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Events/TaskbarFreeBoundsChangedEventArgs.cs index ec75de0..bd45fd9 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Events/TaskbarFreeBoundsChangedEventArgs.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Events/TaskbarFreeBoundsChangedEventArgs.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using Windows.Foundation; namespace BetterLyrics.WinUI3.Events diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Extensions/RectangleExtensions.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Extensions/RectangleExtensions.cs index 884277e..2598381 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Extensions/RectangleExtensions.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Extensions/RectangleExtensions.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Text; +using System.Drawing; using Windows.Foundation; namespace BetterLyrics.WinUI3.Extensions diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/TaskbarHook.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/TaskbarHook.cs index 330f026..9d545ea 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/TaskbarHook.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/TaskbarHook.cs @@ -1,12 +1,10 @@ using BetterLyrics.WinUI3.Enums; using BetterLyrics.WinUI3.Events; using BetterLyrics.WinUI3.Extensions; -using FlaUI.Core; using FlaUI.Core.AutomationElements; using FlaUI.Core.Definitions; using FlaUI.Core.EventHandlers; using FlaUI.UIA3; -using FlaUI.UIA3.Extensions; using Microsoft.UI.Dispatching; using System; using System.Drawing; diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/WindowHook.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/WindowHook.cs index 6b3a755..82c9b14 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/WindowHook.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Hooks/WindowHook.cs @@ -9,7 +9,6 @@ using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using System; using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.InteropServices; using Vanara.PInvoke; using Windows.ApplicationModel.Core; diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/IMediaSessionsService.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/IMediaSessionsService.cs index e3f5ce0..563647d 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/IMediaSessionsService.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/IMediaSessionsService.cs @@ -5,7 +5,6 @@ using Microsoft.UI.Xaml.Media.Imaging; using System; using System.ComponentModel; using System.Threading.Tasks; -using Windows.Graphics.Imaging; using Windows.UI; namespace BetterLyrics.WinUI3.Services.MediaSessionsService diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/MediaSessionsService.AlbumArtUpdater.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/MediaSessionsService.AlbumArtUpdater.cs index eee21c2..4135a35 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/MediaSessionsService.AlbumArtUpdater.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Services/MediaSessionsService/MediaSessionsService.AlbumArtUpdater.cs @@ -12,7 +12,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Vanara.PInvoke; using Windows.Graphics.Imaging; using Windows.Storage.Streams; using Windows.UI; @@ -22,14 +21,14 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService public partial class MediaSessionsService : IMediaSessionsService { private readonly LatestOnlyTaskRunner _albumArtRefreshRunner = new(); - + private List _lightAccentColorsMedianCut = Enumerable.Repeat(Colors.Black, 4).ToList(); private List _darkAccentColorsMedianCut = Enumerable.Repeat(Colors.Black, 4).ToList(); private List _lightAccentColorsOctTree = Enumerable.Repeat(Colors.Black, 4).ToList(); private List _darkAccentColorsOctTree = Enumerable.Repeat(Colors.Black, 4).ToList(); private BitmapDecoder? _albumArtBitmapDecoder = null; - + [ObservableProperty][NotifyPropertyChangedRecipients] public partial BitmapImage? AlbumArtBitmapImage { get; set; } private void UpdateAlbumArt() @@ -63,16 +62,16 @@ namespace BetterLyrics.WinUI3.Services.MediaSessionsService _albumArtBitmapDecoder = await ImageHelper.GetBitmapDecoder(buffer); if (token.IsCancellationRequested) return; - _lightAccentColorsMedianCut = + _lightAccentColorsMedianCut = (await ImageHelper.GetAccentColorsAsync(_albumArtBitmapDecoder, 4, PaletteGeneratorType.MedianCut, false)) .Palette.Select(Helper.ColorHelper.FromVector3).ToList(); - _darkAccentColorsMedianCut = + _darkAccentColorsMedianCut = (await ImageHelper.GetAccentColorsAsync(_albumArtBitmapDecoder, 4, PaletteGeneratorType.MedianCut, true)) .Palette.Select(Helper.ColorHelper.FromVector3).ToList(); - _lightAccentColorsOctTree = + _lightAccentColorsOctTree = (await ImageHelper.GetAccentColorsAsync(_albumArtBitmapDecoder, 4, PaletteGeneratorType.OctTree, false)) .Palette.Select(Helper.ColorHelper.FromVector3).ToList(); - _darkAccentColorsOctTree = + _darkAccentColorsOctTree = (await ImageHelper.GetAccentColorsAsync(_albumArtBitmapDecoder, 4, PaletteGeneratorType.OctTree, true)) .Palette.Select(Helper.ColorHelper.FromVector3).ToList(); diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/AboutControlViewModel.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/AboutControlViewModel.cs index 5219549..cf55981 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/AboutControlViewModel.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/AboutControlViewModel.cs @@ -2,7 +2,6 @@ using BetterLyrics.WinUI3.Helper.BetterLyrics.WinUI3.Helper; using BetterLyrics.WinUI3.Hooks; using BetterLyrics.WinUI3.Models.Settings; -using BetterLyrics.WinUI3.Services.ResourceService; using BetterLyrics.WinUI3.Services.SettingsService; using BetterLyrics.WinUI3.Views; using CommunityToolkit.Mvvm.ComponentModel; @@ -10,8 +9,6 @@ using CommunityToolkit.Mvvm.Input; using Microsoft.UI.Xaml.Controls; using System; using System.Threading.Tasks; -using Windows.Services.Store; -using Windows.System; namespace BetterLyrics.WinUI3.ViewModels { diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryWindow.xaml.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryWindow.xaml.cs index 89b8de9..8271bcf 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryWindow.xaml.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/MusicGalleryWindow.xaml.cs @@ -11,7 +11,6 @@ using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Media.Imaging; using System.Threading.Tasks; -using Windows.Graphics.Imaging; // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/NowPlayingWindow.xaml.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/NowPlayingWindow.xaml.cs index 9386c44..811df20 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/NowPlayingWindow.xaml.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/NowPlayingWindow.xaml.cs @@ -17,13 +17,9 @@ using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Media.Imaging; -using System.Diagnostics; -using System.Threading.Tasks; using Windows.Foundation; -using Windows.Graphics.Imaging; using Windows.UI; using WinRT.Interop; -using WinUIEx.Messaging; namespace BetterLyrics.WinUI3.Views { @@ -76,7 +72,6 @@ namespace BetterLyrics.WinUI3.Views private void OnTaskbarFreeBoundsChanged(Events.TaskbarFreeBoundsChangedEventArgs obj) { - Debug.WriteLine(obj.TaskbarFreeBounds); this.MoveAndResize(obj.TaskbarFreeBounds); }