Refactoring and color improvements

This commit is contained in:
Anis Ahmad
2021-01-18 03:32:01 +06:00
parent d8677ca6d7
commit 0d6b7080b3
5 changed files with 81 additions and 65 deletions

View File

@@ -19,8 +19,8 @@ const (
messagePage = "message"
)
func makeStatusBar(app *tview.Application) *StatusBar {
statusBar := StatusBar{
func prepareStatusBar(app *tview.Application) *StatusBar {
statusBar = &StatusBar{
Pages: tview.NewPages(),
message: tview.NewTextView().SetDynamicColors(true).SetText("Loading..."),
container: app,
@@ -39,7 +39,7 @@ func makeStatusBar(app *tview.Application) *StatusBar {
true,
)
return &statusBar
return statusBar
}
func (bar *StatusBar) showForSeconds(message string, timeout int) {