diff options
Diffstat (limited to 'src/app.go')
-rw-r--r-- | src/app.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -32,7 +32,8 @@ func Run(cfg *Config) { | |||
32 | 32 | ||
33 | a.tv = tview.NewApplication() | 33 | a.tv = tview.NewApplication() |
34 | a.pages = tview.NewPages() | 34 | a.pages = tview.NewPages() |
35 | a.footer = tview.NewTextView() | 35 | a.footer = tview.NewTextView(). |
36 | SetDynamicColors(true) | ||
36 | 37 | ||
37 | a.header = tview.NewTextView(). | 38 | a.header = tview.NewTextView(). |
38 | SetRegions(true). | 39 | SetRegions(true). |
@@ -104,6 +105,7 @@ func (a *app) switchToPage(name string) { | |||
104 | case "artists": | 105 | case "artists": |
105 | a.pages.SwitchToPage("artists") | 106 | a.pages.SwitchToPage("artists") |
106 | a.header.Highlight("artists") | 107 | a.header.Highlight("artists") |
108 | a.tv.SetFocus(a.artistsTree) | ||
107 | case "playlists": | 109 | case "playlists": |
108 | a.pages.SwitchToPage("playlists") | 110 | a.pages.SwitchToPage("playlists") |
109 | a.header.Highlight("playlists") | 111 | a.header.Highlight("playlists") |
@@ -111,4 +113,6 @@ func (a *app) switchToPage(name string) { | |||
111 | a.pages.SwitchToPage("config") | 113 | a.pages.SwitchToPage("config") |
112 | a.header.Highlight("config") | 114 | a.header.Highlight("config") |
113 | } | 115 | } |
116 | |||
117 | a.updateFooter() | ||
114 | } | 118 | } |