diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 2045286..8c5de2f 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -540,6 +540,8 @@ namespace C4IT_CustomerPanel Application.Current.Resources.MergedDictionaries.Insert(1, themes[1]); } + UpdateNavigationHoverResource(); + ComputerInfoCtrl.SetAppearence(); if (TryFindResource("navForeground") is SolidColorBrush navForeground) @@ -557,6 +559,14 @@ namespace C4IT_CustomerPanel } } + private void UpdateNavigationHoverResource() + { + if (Application.Current?.Resources == null) + return; + + Application.Current.Resources["navigationHoverColor"] = GetNavigationHoverBrush(); + } + private void ApplyWindowDraggableState() { bool draggable = ConfigSettings?.GetConfig()?._isDraggable ?? true; diff --git a/UserControls/Announcements.xaml b/UserControls/Announcements.xaml index 0f7419a..c3a0cbd 100644 --- a/UserControls/Announcements.xaml +++ b/UserControls/Announcements.xaml @@ -11,26 +11,24 @@ @@ -98,8 +96,8 @@ diff --git a/UserControls/Incidents.xaml b/UserControls/Incidents.xaml index 7bc451f..a2744e1 100644 --- a/UserControls/Incidents.xaml +++ b/UserControls/Incidents.xaml @@ -51,26 +51,24 @@ @@ -148,8 +146,8 @@ Click="OnCreateNewTicketClicked" Margin="0" /> diff --git a/themes/ThemeDarkNav.xaml b/themes/ThemeDarkNav.xaml index f70a8f3..071f6eb 100644 --- a/themes/ThemeDarkNav.xaml +++ b/themes/ThemeDarkNav.xaml @@ -33,6 +33,7 @@ + diff --git a/themes/ThemeLightNav.xaml b/themes/ThemeLightNav.xaml index 40c7858..04c563e 100644 --- a/themes/ThemeLightNav.xaml +++ b/themes/ThemeLightNav.xaml @@ -33,6 +33,7 @@ +