From e463c38476b96be99b4ae08af4db9e92da9d2a50 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 7 Jun 2018 13:43:17 -0400 Subject: Use default color for selected tab --- lib/ui/tab.go | 12 +++++++++--- 1 file 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) } -- cgit 1.4.1-2-gfad0 ftware → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/html/059to_text.mu.html
blob: 885d16f5fbbcf28c32afc3b90d4063d5d8205ec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111