From ce4de5ef9273113031220d164019f717e2fdf25f Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sat, 6 Jul 2024 20:06:43 -0400 Subject: [PATCH] update all styles using dynamic resource dictionary for theme variants --- project/SPT.Launcher/App.axaml | 44 ++- project/SPT.Launcher/Assets/Styles.axaml | 300 ++++++++++-------- .../CustomControls/ModInfoCard.axaml | 10 +- .../CustomControls/TitleBar.axaml | 8 +- .../Dialogs/ChangeEditionDialogView.axaml | 5 +- .../Dialogs/ConfirmationDialogView.axaml | 5 +- .../Views/Dialogs/RegisterDialogView.axaml | 11 +- .../Views/Dialogs/WarningDialogView.axaml | 4 +- project/SPT.Launcher/Views/LoginView.axaml | 10 +- project/SPT.Launcher/Views/MainWindow.axaml | 10 +- project/SPT.Launcher/Views/ModInfoView.axaml | 8 +- .../Notifications/SPTNotificationView.axaml | 2 +- project/SPT.Launcher/Views/ProfileView.axaml | 16 +- project/SPT.Launcher/Views/SettingsView.axaml | 2 +- 14 files changed, 232 insertions(+), 203 deletions(-) diff --git a/project/SPT.Launcher/App.axaml b/project/SPT.Launcher/App.axaml index 24e5d27..f87b62a 100644 --- a/project/SPT.Launcher/App.axaml +++ b/project/SPT.Launcher/App.axaml @@ -14,21 +14,35 @@ - - #121212 - #FFC107 - #FFFFFF - #282828 - #323947 - - - - - - - - - + + + + #54a4ff + #4383cc + #326299 + #b2a58d + #7f7564 + #4c463b + White + #cccccc + #cca480 + Black + + + #436082 + #567ca8 + #6998ce + #6a6357 + #908676 + #b6a995 + #181a1b + #393e41 + #37332d + White + + + + diff --git a/project/SPT.Launcher/Assets/Styles.axaml b/project/SPT.Launcher/Assets/Styles.axaml index dc7083f..af580f1 100644 --- a/project/SPT.Launcher/Assets/Styles.axaml +++ b/project/SPT.Launcher/Assets/Styles.axaml @@ -3,12 +3,31 @@ xmlns:cc="using:SPT.Launcher.CustomControls" > - - diff --git a/project/SPT.Launcher/Views/Dialogs/ChangeEditionDialogView.axaml b/project/SPT.Launcher/Views/Dialogs/ChangeEditionDialogView.axaml index 0da8f40..28522b7 100644 --- a/project/SPT.Launcher/Views/Dialogs/ChangeEditionDialogView.axaml +++ b/project/SPT.Launcher/Views/Dialogs/ChangeEditionDialogView.axaml @@ -7,7 +7,8 @@ xmlns:s="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="SPT.Launcher.Views.Dialogs.ChangeEditionDialogView" - Background="{StaticResource SPT_Background_Dark}"> + Background="{DynamicResource BackgroundBrush}" + > @@ -31,7 +32,7 @@