Show the directory being selected in gray

This commit is contained in:
Jeffas 2019-07-25 08:41:17 +01:00 committed by Drew DeVault
parent ee5b537d53
commit 0950e39f53
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
style := tcell.StyleDefault
if name == dirlist.selected {
style = style.Reverse(true)
} else if name == dirlist.selecting {
style = style.Reverse(true)
style = style.Foreground(tcell.ColorGray)
}
ctx.Fill(0, row, ctx.Width(), 1, ' ', style)
ctx.Printf(0, row, style, "%s", name)