From fc84b19bba0e0953ec06de27f1ec9c9f8d1a96ef Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 26 Oct 2021 22:42:07 +0200 Subject: 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 --- widgets/compose.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets/compose.go') 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 { -- cgit v1.2.3