Browse Source

feat(box): Add `GetBackgroundColor`

tablepad
Andreas Bieber 2 years ago
parent
commit
ecfa14af14
  1. 7
      box.go

7
box.go

@ -303,6 +303,13 @@ func (b *Box) SetBackgroundColor(color tcell.Color) *Box {
return b
}
// GetBackgroundColor returns the box's background color.
func (b *Box) GetBackgroundColor() tcell.Color {
b.l.RLock()
defer b.l.RUnlock()
return b.backgroundColor
}
// SetBackgroundTransparent sets the flag indicating whether or not the box's
// background is transparent.
func (b *Box) SetBackgroundTransparent(transparent bool) *Box {

Loading…
Cancel
Save