Keep navigation buttons fully transparent in all states

This commit is contained in:
Meik
2026-03-05 12:42:57 +01:00
parent 3f39165b81
commit fe70433346

View File

@@ -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;