summaryrefslogtreecommitdiff
path: root/widgets/compose.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/compose.go
parent42b4302ba32e503c0a8011baae0ca433c8592dd7 (diff)
downloadaerc-fc84b19bba0e0953ec06de27f1ec9c9f8d1a96ef.zip
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/compose.go')
-rw-r--r--widgets/compose.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 01c6281..f4320a1 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -678,9 +678,10 @@ func (c *Composer) updateGrid() {
if c.heditors != nil {
c.grid.RemoveChild(c.heditors)
}
+ borderStyle := c.config.Ui.GetStyle(config.STYLE_BORDER)
c.heditors = heditors
c.grid.AddChild(c.heditors).At(0, 0)
- c.grid.AddChild(ui.NewFill(' ')).At(1, 0)
+ c.grid.AddChild(ui.NewFill(' ', borderStyle)).At(1, 0)
}
func (c *Composer) reloadEmail() error {