Keep navigation buttons fully transparent in all states
This commit is contained in:
@@ -923,7 +923,7 @@ namespace C4IT_CustomerPanel
|
|||||||
|
|
||||||
if (ActiveButton != clickedButton)
|
if (ActiveButton != clickedButton)
|
||||||
{
|
{
|
||||||
clickedButton.Background = ConfigSettings.GetActiveButtonColor();
|
clickedButton.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton);
|
FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton);
|
||||||
if (activeIndicator != null)
|
if (activeIndicator != null)
|
||||||
activeIndicator.Visibility = Visibility.Visible;
|
activeIndicator.Visibility = Visibility.Visible;
|
||||||
@@ -1841,13 +1841,7 @@ namespace C4IT_CustomerPanel
|
|||||||
if (!(sender is Button bu))
|
if (!(sender is Button bu))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SolidColorBrush activeBrush = ConfigSettings.GetActiveButtonColor();
|
bu.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
if (activeBrush == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Color btnColor = ConfigSettings.GetButtonHoverColor(activeBrush.Color);
|
|
||||||
if (btnColor != null)
|
|
||||||
bu.Background = new SolidColorBrush(btnColor);
|
|
||||||
}
|
}
|
||||||
catch (Exception exp)
|
catch (Exception exp)
|
||||||
{
|
{
|
||||||
@@ -1862,9 +1856,7 @@ namespace C4IT_CustomerPanel
|
|||||||
if (!(sender is Button bu))
|
if (!(sender is Button bu))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bu.Background = Equals(bu, ActiveButton)
|
bu.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
? ConfigSettings.GetActiveButtonColor()
|
|
||||||
: System.Windows.Media.Brushes.Transparent;
|
|
||||||
}
|
}
|
||||||
catch (Exception exp)
|
catch (Exception exp)
|
||||||
{
|
{
|
||||||
@@ -1919,7 +1911,7 @@ namespace C4IT_CustomerPanel
|
|||||||
if (bu != ActiveButton)
|
if (bu != ActiveButton)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bu.Background = ConfigSettings.GetActiveButtonColor();
|
bu.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
FrameworkElement activeIndicator = GetActiveTabIndicator(bu);
|
FrameworkElement activeIndicator = GetActiveTabIndicator(bu);
|
||||||
if (activeIndicator != null)
|
if (activeIndicator != null)
|
||||||
activeIndicator.Visibility = Visibility.Visible;
|
activeIndicator.Visibility = Visibility.Visible;
|
||||||
|
|||||||
Reference in New Issue
Block a user