Fixed Box border background colour.

This commit is contained in:
Oliver 2021-03-12 12:58:47 +01:00
parent b2dec96e1a
commit ae065beb93
1 changed files with 1 additions and 0 deletions

1
box.go
View File

@ -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
}