You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
380 B
22 lines
380 B
package main |
|
|
|
import "github.com/rivo/tview" |
|
|
|
func NewStatusBar(app *App) *StatusBar { |
|
s := &StatusBar{ |
|
Text: tview.NewTextView(), |
|
} |
|
|
|
s.Text.SetBackgroundColor(app.Config.Style.StatusBarBackground) |
|
s.Text.SetTextColor(app.Config.Style.StatusBarText) |
|
|
|
return s |
|
} |
|
|
|
type StatusBar struct { |
|
Text *tview.TextView |
|
} |
|
|
|
func (s *StatusBar) SetText(t string) { |
|
s.Text.SetText(t) |
|
}
|
|
|