Figure out way better choice highlighting

This commit is contained in:
raul 2024-05-16 11:27:09 +02:00
parent d4230db74f
commit 17bf35e591
1 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func ui() {
defer g.Close() defer g.Close()
g.SetManagerFunc(layout) g.SetManagerFunc(layout)
g.Mouse = true g.Mouse = true
g.Cursor = true g.Cursor = false
initKeybindings(g) initKeybindings(g)
@ -119,12 +119,15 @@ func layout(g *gocui.Gui) error {
log.Panicln(err) log.Panicln(err)
} }
for i := 0; i < 5; i++ { for i := 0; i < 5; i++ {
songName := fmt.Sprintf(" SongNumber%v", i) songName := fmt.Sprintf("SongNumber%v", i)
fmt.Fprintln(songSelection, songName) fmt.Fprintln(songSelection, songName)
} }
songSelection.Title = "Song selection:" songSelection.Title = "Song selection:"
songSelection.Wrap = true songSelection.Wrap = true
songSelection.Editable = false songSelection.Editable = false
songSelection.Highlight = true
songSelection.SelFgColor = gocui.ColorCyan
} }
if currentlyPlaying, err := g.SetView("currentlyPlaying", maxX/2+4, 5, maxX-2, maxY-2); err != nil { if currentlyPlaying, err := g.SetView("currentlyPlaying", maxX/2+4, 5, maxX-2, maxY-2); err != nil {