From dcbcf2ce618c7b2f7bfc335bd2f74e2e50ba5cc1 Mon Sep 17 00:00:00 2001 From: ClaudioESSilva Date: Thu, 26 Feb 2026 17:20:40 +0000 Subject: [PATCH 01/73] Add Light Theme to Dashboard --- Dashboard/App.xaml.cs | 7 + Dashboard/Controls/AlertsHistoryContent.xaml | 6 +- Dashboard/Controls/CriticalIssuesContent.xaml | 4 - Dashboard/Controls/DailySummaryContent.xaml | 8 +- Dashboard/Controls/LandingPage.xaml | 8 - Dashboard/Controls/MemoryContent.xaml | 4 - .../Controls/ResourceMetricsContent.xaml | 4 +- Dashboard/Controls/ServerHealthCard.xaml | 4 - Dashboard/Controls/SystemEventsContent.xaml | 4 - Dashboard/Helpers/TabHelpers.cs | 134 +- Dashboard/Helpers/ThemeManager.cs | 46 + Dashboard/Models/UserPreferences.cs | 3 + Dashboard/ProcedureHistoryWindow.xaml.cs | 8 + Dashboard/QueryExecutionHistoryWindow.xaml.cs | 8 + Dashboard/QueryStatsHistoryWindow.xaml.cs | 8 + Dashboard/ServerTab.xaml | 23 +- Dashboard/ServerTab.xaml.cs | 31 +- Dashboard/Services/NotificationService.cs | 52 +- Dashboard/SettingsWindow.xaml | 13 +- Dashboard/SettingsWindow.xaml.cs | 27 + Dashboard/Themes/DarkTheme.xaml | 5 + Dashboard/Themes/LightTheme.xaml | 1229 +++++++++++++++++ Dashboard/TracePatternHistoryWindow.xaml.cs | 8 + 23 files changed, 1516 insertions(+), 128 deletions(-) create mode 100644 Dashboard/Helpers/ThemeManager.cs create mode 100644 Dashboard/Themes/LightTheme.xaml diff --git a/Dashboard/App.xaml.cs b/Dashboard/App.xaml.cs index 54af804..675f05f 100644 --- a/Dashboard/App.xaml.cs +++ b/Dashboard/App.xaml.cs @@ -37,6 +37,13 @@ protected override void OnStartup(StartupEventArgs e) base.OnStartup(e); + // Apply saved color theme before the main window is shown + var prefs = new Services.UserPreferencesService().GetPreferences(); + if (prefs.ColorTheme == "Light") + { + ThemeManager.Apply("Light"); + } + // Register global exception handlers AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; DispatcherUnhandledException += OnDispatcherUnhandledException; diff --git a/Dashboard/Controls/AlertsHistoryContent.xaml b/Dashboard/Controls/AlertsHistoryContent.xaml index d0c258e..b97fbc3 100644 --- a/Dashboard/Controls/AlertsHistoryContent.xaml +++ b/Dashboard/Controls/AlertsHistoryContent.xaml @@ -7,10 +7,6 @@ d:DesignHeight="450" d:DesignWidth="800"> - - - - @@ -74,7 +70,7 @@ + diff --git a/Lite/MainWindow.xaml b/Lite/MainWindow.xaml index 4ed956c..f099db7 100644 --- a/Lite/MainWindow.xaml +++ b/Lite/MainWindow.xaml @@ -164,8 +164,8 @@ -