aboutsummaryrefslogtreecommitdiff
path: root/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui.go b/ui.go
index 7ead0c4..96b4e41 100644
--- a/ui.go
+++ b/ui.go
@@ -35,12 +35,13 @@ type GomuksUI struct {
config *Config
views *tview.Pages
- mainView *MainView
+ mainView *MainView
+ loginView *tview.Form
}
func init() {
tview.Styles.PrimitiveBackgroundColor = tcell.ColorDefault
- tview.Styles.ContrastBackgroundColor = tcell.ColorDefault
+ tview.Styles.ContrastBackgroundColor = tcell.ColorDarkGreen
}
func NewGomuksUI(gmx Gomuks) (ui *GomuksUI) {
@@ -65,9 +66,8 @@ func (ui *GomuksUI) SetView(name string) {
}
func (ui *GomuksUI) InitViews() tview.Primitive {
- ui.mainView = ui.NewMainView()
- ui.views.AddPage(ViewLogin, ui.MakeLoginUI(), true, true)
- ui.views.AddPage(ViewMain, ui.mainView, true, false)
+ ui.views.AddPage(ViewLogin, ui.NewLoginView(), true, true)
+ ui.views.AddPage(ViewMain, ui.NewMainView(), true, false)
return ui.views
}