Skip to content

Commit

Permalink
Fixed keystroke border not going away after getting deactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed Nov 18, 2022
1 parent 5e3b4c3 commit 4ab5b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EvadeKeystrokes.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public partial class MainWindow : Window
private readonly string DefaultPressedValue = "#FFBEE6FD";
private readonly string DefaultBackgroundBorderValue = "#FFDDDDDD";
private readonly string DefaultForegroundValue = "#FF000000";
private readonly Brush EmptyBrush = new BrushConverter().ConvertFrom("#00FFFFFF") as Brush;

private bool useBorder;

Expand Down Expand Up @@ -128,7 +129,7 @@ private void DeactivateButton(Button buttonName)
{
if (useBorder)
{
buttonName.BorderBrush = BackgroundBorderValue;
buttonName.BorderBrush = EmptyBrush;
}
else
{
Expand Down

0 comments on commit 4ab5b66

Please sign in to comment.