Use background-derived hover color for nav buttons
This commit is contained in:
@@ -1834,18 +1834,19 @@ namespace C4IT_CustomerPanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Button_MouseEnter(object sender, EventArgs e)
|
public void Button_MouseEnter(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!(sender is Button bu))
|
if (!(sender is Button bu))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bu.Background = System.Windows.Media.Brushes.Transparent;
|
Color hoverColor = ConfigSettings.GetButtonHoverColor(ConfigSettings.GetBackgroundColor().Color);
|
||||||
}
|
bu.Background = new SolidColorBrush(hoverColor);
|
||||||
catch (Exception exp)
|
}
|
||||||
{
|
catch (Exception exp)
|
||||||
cLogManager.LogException(exp);
|
{
|
||||||
|
cLogManager.LogException(exp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user