Keep navigation buttons fully transparent in all states
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user