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;