diff options
author | Robin Jarry <robin@jarry.cc> | 2021-10-26 22:42:07 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2021-10-28 16:38:23 +0200 |
commit | fc84b19bba0e0953ec06de27f1ec9c9f8d1a96ef (patch) | |
tree | 04379398cf135658019ddcfbdc0fddcba305b3de /widgets/aerc.go | |
parent | 42b4302ba32e503c0a8011baae0ca433c8592dd7 (diff) | |
download | aerc-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/aerc.go')
-rw-r--r-- | widgets/aerc.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go index 350e94e2..7ee2c3b3 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -230,8 +230,8 @@ func (aerc *Aerc) Event(event tcell.Event) bool { aerc.statusline.Expire() aerc.pendingKeys = append(aerc.pendingKeys, config.KeyStroke{ Modifiers: event.Modifiers(), - Key: event.Key(), - Rune: event.Rune(), + Key: event.Key(), + Rune: event.Rune(), }) aerc.statusline.Invalidate() bindings := aerc.getBindings() @@ -648,8 +648,8 @@ func errorScreen(s string, conf config.UIConfig) ui.Drawable { }).Columns([]ui.GridSpec{ {ui.SIZE_WEIGHT, ui.Const(1)}, }) - grid.AddChild(ui.NewFill(' ')).At(0, 0) + grid.AddChild(ui.NewFill(' ', tcell.StyleDefault)).At(0, 0) grid.AddChild(text).At(1, 0) - grid.AddChild(ui.NewFill(' ')).At(2, 0) + grid.AddChild(ui.NewFill(' ', tcell.StyleDefault)).At(2, 0) return grid } |