summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-06-07 13:43:17 -0400
committerDrew DeVault <sir@cmpwn.com>2018-06-07 13:43:17 -0400
commite463c38476b96be99b4ae08af4db9e92da9d2a50 (patch)
tree61641a07be8e2142b9734b7a0a3c7d648fb3c235
parent28021ede1bf6b2e2013b9db3fd22c85a3b6099a9 (diff)
downloadaerc-e463c38476b96be99b4ae08af4db9e92da9d2a50.tar.gz
Use default color for selected tab
-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)
 }
 
='n133' href='#n133'>133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214