diff options
author | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-07 21:51:22 +0100 |
---|---|---|
committer | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-07 21:51:22 +0100 |
commit | 96cc5db2b4062ced82faf01ddac24abef04df343 (patch) | |
tree | cbede4969df8d792aa54b3541d3c99278172acf8 /src/footer.go | |
parent | 38fe18fc9b89365566359d075335a8d474f16709 (diff) | |
download | termsonic-96cc5db2b4062ced82faf01ddac24abef04df343.tar.gz termsonic-96cc5db2b4062ced82faf01ddac24abef04df343.zip |
Add keybinds in footer
Diffstat (limited to 'src/footer.go')
-rw-r--r-- | src/footer.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/footer.go b/src/footer.go new file mode 100644 index 0000000..b0494d0 --- /dev/null +++ b/src/footer.go | |||
@@ -0,0 +1,17 @@ | |||
1 | package src | ||
2 | |||
3 | func (a *app) updateFooter() { | ||
4 | switch a.header.GetHighlights()[0] { | ||
5 | case "artists": | ||
6 | switch a.tv.GetFocus() { | ||
7 | case a.artistsTree: | ||
8 | a.footer.SetText("Artists: [blue]Up/Down:[yellow] Move selection [blue]Space:[yellow] Select entry") | ||
9 | case a.songsList: | ||
10 | a.footer.SetText("Songs: [blue]Up/Down:[yellow] Move selection [blue]Space:[yellow] Play") | ||
11 | } | ||
12 | case "playlists": | ||
13 | a.footer.SetText("Come back later!") | ||
14 | case "config": | ||
15 | a.footer.SetText("Configuration page") | ||
16 | } | ||
17 | } | ||