From fe70433346dd05f4e8d1ff363c36392d91171463 Mon Sep 17 00:00:00 2001 From: Meik Date: Thu, 5 Mar 2026 12:42:57 +0100 Subject: [PATCH] Keep navigation buttons fully transparent in all states --- MainWindow.xaml.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index fe8235f..e676034 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -923,7 +923,7 @@ namespace C4IT_CustomerPanel if (ActiveButton != clickedButton) { - clickedButton.Background = ConfigSettings.GetActiveButtonColor(); + clickedButton.Background = System.Windows.Media.Brushes.Transparent; FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton); if (activeIndicator != null) activeIndicator.Visibility = Visibility.Visible; @@ -1841,13 +1841,7 @@ namespace C4IT_CustomerPanel if (!(sender is Button bu)) return; - SolidColorBrush activeBrush = ConfigSettings.GetActiveButtonColor(); - if (activeBrush == null) - return; - - Color btnColor = ConfigSettings.GetButtonHoverColor(activeBrush.Color); - if (btnColor != null) - bu.Background = new SolidColorBrush(btnColor); + bu.Background = System.Windows.Media.Brushes.Transparent; } catch (Exception exp) { @@ -1862,9 +1856,7 @@ namespace C4IT_CustomerPanel if (!(sender is Button bu)) return; - bu.Background = Equals(bu, ActiveButton) - ? ConfigSettings.GetActiveButtonColor() - : System.Windows.Media.Brushes.Transparent; + bu.Background = System.Windows.Media.Brushes.Transparent; } catch (Exception exp) { @@ -1919,7 +1911,7 @@ namespace C4IT_CustomerPanel if (bu != ActiveButton) return; - bu.Background = ConfigSettings.GetActiveButtonColor(); + bu.Background = System.Windows.Media.Brushes.Transparent; FrameworkElement activeIndicator = GetActiveTabIndicator(bu); if (activeIndicator != null) activeIndicator.Visibility = Visibility.Visible;