aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2021-10-26 22:42:07 +0200
committerRobin Jarry <robin@jarry.cc>2021-10-28 16:38:23 +0200
commitfc84b19bba0e0953ec06de27f1ec9c9f8d1a96ef (patch)
tree04379398cf135658019ddcfbdc0fddcba305b3de /widgets/msgviewer.go
parent42b4302ba32e503c0a8011baae0ca433c8592dd7 (diff)
downloadaerc-fc84b19bba0e0953ec06de27f1ec9c9f8d1a96ef.tar.gz
view,compose: use border color to separate headers from body
When composing a message, there is an empty fill line between the headers and the text editor. The line is printed with the default style which may cause users to assume it is part of the editor. Display the fill lines with the border color to avoid confusion. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 5e887902..87deac4f 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -105,13 +105,15 @@ func NewMessageViewer(acct *AccountView,
}
}
+ borderStyle := acct.UiConfig().GetStyle(config.STYLE_BORDER)
+
grid.AddChild(header).At(0, 0)
if msg.PGPDetails() != nil {
grid.AddChild(NewPGPInfo(msg.PGPDetails(), acct.UiConfig())).At(1, 0)
- grid.AddChild(ui.NewFill(' ')).At(2, 0)
+ grid.AddChild(ui.NewFill(' ', borderStyle)).At(2, 0)
grid.AddChild(switcher).At(3, 0)
} else {
- grid.AddChild(ui.NewFill(' ')).At(1, 0)
+ grid.AddChild(ui.NewFill(' ', borderStyle)).At(1, 0)
grid.AddChild(switcher).At(2, 0)
}