Add SetStyle Function
This commit is contained in:
@@ -165,7 +165,8 @@ func (w *DebugWidget) Draw(screen tcell.Screen) {
|
||||
w.GetPos().DrawOffset(w.widget, screen)
|
||||
}
|
||||
|
||||
func (w *DebugWidget) Active() bool { return w.active }
|
||||
func (w *DebugWidget) SetStyle(s tcell.Style) { w.style = s }
|
||||
func (w *DebugWidget) Active() bool { return w.active }
|
||||
func (w *DebugWidget) SetActive(a bool) {
|
||||
w.active = a
|
||||
w.widget.SetActive(a)
|
||||
|
||||
Reference in New Issue
Block a user