about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/ui/tab.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go
index d0635c7..107ff5d 100644
--- 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)
 }