summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-30 15:59:42 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-30 15:59:42 -0400
commit78db7ccafaeb971871ddf60511a50143491ca1d2 (patch)
tree884eafee788654e0a3757d9d45c91b6f78fe3a79
parent337dd18c9ca5ad5c01ef46f9b6f7ac40cd0f2fc5 (diff)
downloadaerc-78db7ccafaeb971871ddf60511a50143491ca1d2.tar.gz
Use bold instead of inverted for header names
-rw-r--r--widgets/msgviewer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 9d80c74..a4fec09 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -205,7 +205,7 @@ type HeaderView struct {
 }
 
 func (hv *HeaderView) Draw(ctx *ui.Context) {
-	size := runewidth.StringWidth(" " + hv.Name + " ")
+	size := runewidth.StringWidth(hv.Name)
 	var style tcell.Style
 	if hv.Name == "PGP" {
 		style = tcell.StyleDefault.Foreground(tcell.ColorGreen)
@@ -213,7 +213,8 @@ func (hv *HeaderView) Draw(ctx *ui.Context) {
 		style = tcell.StyleDefault
 	}
 	ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', style)
-	ctx.Printf(0, 0, tcell.StyleDefault.Reverse(true), " "+hv.Name+" ")
+	ctx.Printf(0, 0,
+		tcell.StyleDefault.Bold(true), hv.Name)
 	ctx.Printf(size, 0, style, " "+hv.Value)
 }
 
pre>
48835572 ^

b17de7ba ^


4f3d9065 ^
6f65d591 ^
f017a508 ^
4f3d9065 ^
f017a508 ^
48835572 ^
4f3d9065 ^

ad8161f3 ^
48835572 ^












4f3d9065 ^


b17de7ba ^
7a84094a ^

7c3bbb77 ^
b17de7ba ^

7c3bbb77 ^
51b0936f ^
b17de7ba ^



760f683f ^
b17de7ba ^
4a48bedc ^
b17de7ba ^
7c3bbb77 ^
748b6865 ^
b17de7ba ^

8bd3f99f ^

760f683f ^
b17de7ba ^
4a48bedc ^
7a84094a ^
4f3d9065 ^
7a84094a ^
88b8d612 ^
9d9da2ad ^
7c3bbb77 ^
88b8d612 ^
51b0936f ^

b17de7ba ^
dd660682 ^
88b8d612 ^
b17de7ba ^

48835572 ^
b17de7ba ^
4a48bedc ^
7a84094a ^
4f3d9065 ^
7a84094a ^
88b8d612 ^
9d9da2ad ^
7c3bbb77 ^
88b8d612 ^
48835572 ^






aed29290 ^
b17de7ba ^
cdb9fbee ^


4a48bedc ^
cdb9fbee ^



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