diff options
author | Jeffas <dev@jeffas.io> | 2019-07-25 08:41:17 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-25 18:15:49 -0400 |
commit | 0950e39f538610172858a5e3b7582a7f5cb1fd64 (patch) | |
tree | 7641e8730b73356625d13dfb85be6acd1171d1b3 /widgets | |
parent | ee5b537d538baf38450a2ae655dee53a49aa9824 (diff) | |
download | aerc-0950e39f538610172858a5e3b7582a7f5cb1fd64.tar.gz |
Show the directory being selected in gray
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/dirlist.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index c5e4a0c..0a6113a 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -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) |