diff --git a/button.go b/button.go index 4363cea..5ad241a 100644 --- a/button.go +++ b/button.go @@ -136,18 +136,10 @@ func (b *Button) Draw(screen tcell.Screen) { if b.disabled { style = b.disabledStyle } - _, backgroundColor, _ := style.Decompose() if b.HasFocus() && !b.disabled { style = b.activatedStyle - _, backgroundColor, _ = style.Decompose() - - // Highlight button for one drawing cycle. - borderColor := b.GetBorderColor() - b.SetBorderColor(backgroundColor) - defer func() { - b.SetBorderColor(borderColor) - }() } + _, backgroundColor, _ := style.Decompose() b.SetBackgroundColor(backgroundColor) b.Box.DrawForSubclass(screen, b)