From 0fa6e12422828d03a88615226b34ac859c15300e Mon Sep 17 00:00:00 2001 From: Slavasil Date: Wed, 29 Apr 2026 21:35:11 +0300 Subject: [PATCH] theme improvements - force Light theme variant (temporary) to match the actual UI look - define some colors and brushes in AppTheme to avoid repetition - fix text color in AboutWindow --- src/KeyKeeper/AboutWindow.cs | 3 ++- src/KeyKeeper/App.axaml | 4 ++-- src/KeyKeeper/Styles/AppTheme.axaml | 24 +++++++++++++++++++----- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/KeyKeeper/AboutWindow.cs b/src/KeyKeeper/AboutWindow.cs index b082668..ef3c58a 100644 --- a/src/KeyKeeper/AboutWindow.cs +++ b/src/KeyKeeper/AboutWindow.cs @@ -15,7 +15,8 @@ public class AboutWindow : Window this.MinWidth = 450; this.MinHeight = 250; - this.Background = new SolidColorBrush(Color.Parse("#2328c4")); + this.Background = this.FindResource("KeyKeeperAboutWindowBackgroundBrush") as IBrush; + this.Foreground = this.FindResource("KeyKeeperAboutWindowForegroundBrush") as IBrush; var AboutKeyKeeper = new TextBlock { diff --git a/src/KeyKeeper/App.axaml b/src/KeyKeeper/App.axaml index 9f89dbc..77cdcd5 100644 --- a/src/KeyKeeper/App.axaml +++ b/src/KeyKeeper/App.axaml @@ -2,7 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="KeyKeeper.App" xmlns:local="using:KeyKeeper" - RequestedThemeVariant="Default"> + RequestedThemeVariant="Light"> @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/src/KeyKeeper/Styles/AppTheme.axaml b/src/KeyKeeper/Styles/AppTheme.axaml index fd9f190..78dd1f0 100644 --- a/src/KeyKeeper/Styles/AppTheme.axaml +++ b/src/KeyKeeper/Styles/AppTheme.axaml @@ -5,9 +5,24 @@