diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-30 12:59:18 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-30 12:59:18 -0400 |
commit | 84965d680cff655c7734070ef93fd3c1e2177748 (patch) | |
tree | a77f59f78406a958795a14bf40292f31f25ddc24 /lib/ui/tab.go | |
parent | 700dea23fa75f213af2f99449db994008eab9d21 (diff) | |
download | aerc-84965d680cff655c7734070ef93fd3c1e2177748.tar.gz |
Use tcell.Style.Reverse instead of black on white
Diffstat (limited to 'lib/ui/tab.go')
-rw-r--r-- | lib/ui/tab.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go index 32b195c3..49bdffa8 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -83,19 +83,13 @@ func (tabs *Tabs) Select(index int) { func (strip *TabStrip) Draw(ctx *Context) { x := 0 for i, tab := range strip.Tabs { - style := tcell.StyleDefault. - Background(tcell.ColorWhite). - Foreground(tcell.ColorBlack) + style := tcell.StyleDefault.Reverse(true) if strip.Selected == i { - style = tcell.StyleDefault. - Background(tcell.ColorDefault). - Foreground(tcell.ColorDefault) + style = tcell.StyleDefault } x += ctx.Printf(x, 0, style, " %s ", tab.Name) } - style := tcell.StyleDefault. - Background(tcell.ColorWhite). - Foreground(tcell.ColorBlack) + style := tcell.StyleDefault.Reverse(true) ctx.Fill(x, 0, ctx.Width()-x, 1, ' ', style) } |