aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
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 /widgets/msgviewer.go
parent337dd18c9ca5ad5c01ef46f9b6f7ac40cd0f2fc5 (diff)
downloadaerc-78db7ccafaeb971871ddf60511a50143491ca1d2.tar.gz
Use bold instead of inverted for header names
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 9d80c743..a4fec090 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)
}