From 98a47719255fa3b412fef274ebec625333434199 Mon Sep 17 00:00:00 2001 From: AlexanderDotH Date: Sat, 6 May 2023 16:32:25 +0200 Subject: [PATCH] Fine tuned the LyricsScroller --- OpenLyricsClient.Shared/Utils/CryptoUtils.cs | 21 --- OpenLyricsClient/App.axaml | 6 +- OpenLyricsClient/Backend/Cache/CacheEntry.cs | 2 +- .../Backend/Cache/CacheManager.cs | 2 +- .../Backend/Handler/Artwork/ArtworkHandler.cs | 151 +++++++++--------- .../Custom/NewLyricsScrollerViewModel.cs | 25 +++ .../Providers/SettingsSpotifyViewModel.cs | 8 +- .../SubPages/ScrollPreviewSubPageViewModel.cs | 8 +- .../View/Custom/NewLyricsScroller.axaml | 5 +- .../View/Custom/NewLyricsScroller.axaml.cs | 32 ++-- .../Frontend/View/Pages/LyricsPage.axaml | 2 +- 11 files changed, 139 insertions(+), 123 deletions(-) delete mode 100644 OpenLyricsClient.Shared/Utils/CryptoUtils.cs diff --git a/OpenLyricsClient.Shared/Utils/CryptoUtils.cs b/OpenLyricsClient.Shared/Utils/CryptoUtils.cs deleted file mode 100644 index 1c4ae9c..0000000 --- a/OpenLyricsClient.Shared/Utils/CryptoUtils.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Security.Cryptography; -using System.Text; - -namespace OpenLyricsClient.Shared.Utils; - -public class CryptoUtils -{ - public static string ToMD5(string data) - { - MD5CryptoServiceProvider md5CryptoServiceProvider = new MD5CryptoServiceProvider(); - byte[] compute = md5CryptoServiceProvider.ComputeHash(Encoding.UTF8.GetBytes(data)); - - StringBuilder strBuilder = new StringBuilder(); - for (int i = 0; i < compute.Length; i++) - { - strBuilder.Append(compute[i].ToString("x2")); - } - - return strBuilder.ToString(); - } -} \ No newline at end of file diff --git a/OpenLyricsClient/App.axaml b/OpenLyricsClient/App.axaml index 031a675..28bb590 100644 --- a/OpenLyricsClient/App.axaml +++ b/OpenLyricsClient/App.axaml @@ -40,11 +40,11 @@