diff --git a/box.go b/box.go index 62bc896..582d039 100644 --- a/box.go +++ b/box.go @@ -247,6 +247,7 @@ func (b *Box) GetMouseCapture() func(action MouseAction, event *tcell.EventMouse // SetBackgroundColor sets the box's background color. func (b *Box) SetBackgroundColor(color tcell.Color) *Box { b.backgroundColor = color + b.borderStyle = b.borderStyle.Background(color) return b }