blob: 52cfb28829e2f1ca75d56b6923e10c6905335155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package src
func (a *app) updateFooter() {
switch a.headerSections.GetHighlights()[0] {
case "artists":
if a.tv.GetFocus() == a.artistsTree {
a.footer.SetText("[blue]l:[yellow] Next song [blue]p:[yellow] Toggle pause [blue]e:[yellow] Play album last [blue]n:[yellow] Play album next")
} else if a.tv.GetFocus() == a.songsList {
a.footer.SetText("[blue]l:[yellow] Next song [blue]p:[yellow] Toggle pause [blue]e:[yellow] Play song last [blue]n:[yellow] Play song next")
}
case "playqueue":
a.footer.SetText("[blue]l:[yellow] Next song [blue]p:[yellow] Toggle pause [blue]d:[yellow] Remove [blue]j:[yellow] Move up [blue]k:[yellow] Move down [blue]r:[yellow] Shuffle")
case "playlists":
if a.tv.GetFocus() == a.playlistsList {
a.footer.SetText("[blue]l:[yellow] Next song [blue]p:[yellow] Toggle pause [blue]e:[yellow] Play playlist last [blue]n:[yellow] Play playlist next [blue]r:[yellow] Random")
} else if a.tv.GetFocus() == a.playlistSongs {
a.footer.SetText("[blue]l:[yellow] Next song [blue]p:[yellow] Toggle pause [blue]e:[yellow] Play song last [blue]n:[yellow] Play song next")
}
case "config":
a.footer.SetText("[blue]Ctrl+R:[yellow] Refresh")
}
}
|