diff --git a/Dashboard/App.xaml.cs b/Dashboard/App.xaml.cs index 54af8047..516b0a68 100644 --- a/Dashboard/App.xaml.cs +++ b/Dashboard/App.xaml.cs @@ -37,6 +37,10 @@ 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(); + ThemeManager.Apply(prefs.ColorTheme ?? "Dark"); + // Register global exception handlers AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; DispatcherUnhandledException += OnDispatcherUnhandledException; diff --git a/Dashboard/Controls/AlertsHistoryContent.xaml b/Dashboard/Controls/AlertsHistoryContent.xaml index d0c258e6..b97fbc3d 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 @@