Show the directory being selected in gray
This commit is contained in:
parent
ee5b537d53
commit
0950e39f53
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
|
||||||
style := tcell.StyleDefault
|
style := tcell.StyleDefault
|
||||||
if name == dirlist.selected {
|
if name == dirlist.selected {
|
||||||
style = style.Reverse(true)
|
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.Fill(0, row, ctx.Width(), 1, ' ', style)
|
||||||
ctx.Printf(0, row, style, "%s", name)
|
ctx.Printf(0, row, style, "%s", name)
|
||||||
|
|
Loading…
Reference in a new issue