aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit e463c38476b96be99b4ae08af4db9e92da9d2a50
parent 28021ede1bf6b2e2013b9db3fd22c85a3b6099a9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  7 Jun 2018 13:43:17 -0400

Use default color for selected tab

Diffstat:
Mlib/ui/tab.go | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/lib/ui/tab.go b/lib/ui/tab.go @@ -72,13 +72,19 @@ 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. + Background(tcell.ColorWhite). + Foreground(tcell.ColorBlack) if strip.Selected == i { - style = style.Reverse(true) + style = tcell.StyleDefault. + Background(tcell.ColorDefault). + Foreground(tcell.ColorDefault) } x += ctx.Printf(x, 0, style, " %s ", tab.Name) } - style := tcell.StyleDefault.Background(tcell.ColorWhite).Foreground(tcell.ColorBlack) + style := tcell.StyleDefault. + Background(tcell.ColorWhite). + Foreground(tcell.ColorBlack) ctx.Fill(x, 0, ctx.Width()-x, 1, ' ', style) }