aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-30 12:59:18 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-30 12:59:18 -0400
commit84965d680cff655c7734070ef93fd3c1e2177748 (patch)
treea77f59f78406a958795a14bf40292f31f25ddc24 /widgets/dirlist.go
parent700dea23fa75f213af2f99449db994008eab9d21 (diff)
downloadaerc-84965d680cff655c7734070ef93fd3c1e2177748.tar.gz
Use tcell.Style.Reverse instead of black on white
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 58108ff5..eb79bc43 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -109,8 +109,7 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
}
style := tcell.StyleDefault
if name == dirlist.selected {
- style = style.Background(tcell.ColorWhite).
- Foreground(tcell.ColorBlack)
+ style = style.Reverse(true)
}
ctx.Fill(0, row, ctx.Width(), 1, ' ', style)
ctx.Printf(0, row, style, "%s", name)