From 9194516591c15b96cff97d7de0f319d94bd5a09b Mon Sep 17 00:00:00 2001 From: AlexanderDotH Date: Wed, 26 Apr 2023 20:12:37 +0200 Subject: [PATCH] Improved Visuals --- .../Settings/Sections/Lyrics/LyricsSection.cs | 5 +-- .../Pages/Settings/SettingsUserPage.axaml | 14 +++---- .../Frontend/View/Pages/SettingsPage.axaml | 38 +++++++++++++++++++ .../Frontend/View/Pages/SettingsPage.axaml.cs | 13 ++++++- OpenLyricsClient/OpenLyricsClient.csproj | 3 ++ 5 files changed, 60 insertions(+), 13 deletions(-) diff --git a/OpenLyricsClient/Backend/Settings/Sections/Lyrics/LyricsSection.cs b/OpenLyricsClient/Backend/Settings/Sections/Lyrics/LyricsSection.cs index 28a9959..8b7f890 100644 --- a/OpenLyricsClient/Backend/Settings/Sections/Lyrics/LyricsSection.cs +++ b/OpenLyricsClient/Backend/Settings/Sections/Lyrics/LyricsSection.cs @@ -23,10 +23,7 @@ public LyricsSection(string filePath) public async Task WriteToDisk() { - await using FileStream stream = this._file.Open(FileMode.Create, FileAccess.Write);; - await using StreamWriter writer = new StreamWriter(stream); - - await writer.WriteAsync(this._data?.ToString()); + await File.WriteAllTextAsync(this._file.FullName, this._data.ToString()); } public async Task ReadFromDisk() diff --git a/OpenLyricsClient/Frontend/View/Pages/Settings/SettingsUserPage.axaml b/OpenLyricsClient/Frontend/View/Pages/Settings/SettingsUserPage.axaml index ee2ec01..e11d38b 100644 --- a/OpenLyricsClient/Frontend/View/Pages/Settings/SettingsUserPage.axaml +++ b/OpenLyricsClient/Frontend/View/Pages/Settings/SettingsUserPage.axaml @@ -68,21 +68,21 @@ + FontSize="14"/> + FontSize="14"/> + FontSize="14"/> + FontSize="14"/> @@ -90,21 +90,21 @@ + FontSize="14"/> + FontSize="14"/> + FontSize="14"> diff --git a/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml b/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml index 4136bca..5ae3e20 100644 --- a/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml +++ b/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml @@ -141,6 +141,42 @@ + + + + + + + + + + diff --git a/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml.cs b/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml.cs index b860260..fbdf700 100644 --- a/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml.cs +++ b/OpenLyricsClient/Frontend/View/Pages/SettingsPage.axaml.cs @@ -23,7 +23,8 @@ public partial class SettingsPage : UserControl private Button _btnLyrics; private Button _btnSpotify; private Button _btnCache; - + private Button _btnProfile; + private Carousel _pageSelector; private ATupleList _buttonList; @@ -45,12 +46,15 @@ public SettingsPage() this._btnLyrics = this.Get