From 3a279a1b26d82bebeb572f7ef684212d9dfd5de0 Mon Sep 17 00:00:00 2001 From: Meik Date: Thu, 5 Mar 2026 12:45:01 +0100 Subject: [PATCH] Use background-derived hover color for nav buttons --- MainWindow.xaml.cs | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index e676034..15178a2 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -1834,18 +1834,19 @@ namespace C4IT_CustomerPanel } } - public void Button_MouseEnter(object sender, EventArgs e) - { - try - { - if (!(sender is Button bu)) - return; - - bu.Background = System.Windows.Media.Brushes.Transparent; - } - catch (Exception exp) - { - cLogManager.LogException(exp); + public void Button_MouseEnter(object sender, EventArgs e) + { + try + { + if (!(sender is Button bu)) + return; + + Color hoverColor = ConfigSettings.GetButtonHoverColor(ConfigSettings.GetBackgroundColor().Color); + bu.Background = new SolidColorBrush(hoverColor); + } + catch (Exception exp) + { + cLogManager.LogException(exp); } }