diff options
author | Dian M Fay <dian.m.fay@gmail.com> | 2021-11-29 17:48:35 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2021-11-30 15:05:33 +0100 |
commit | f776fb82469d0b9aefffd3f16b27024d53d922c8 (patch) | |
tree | 7f683ad0ae2f5e8c19d5fbef1a2e23a98d7279c5 /widgets/compose.go | |
parent | ad5f65b92788d624a036af763a8243c19fc4c1a8 (diff) | |
download | aerc-f776fb82469d0b9aefffd3f16b27024d53d922c8.tar.gz |
style: customize vertical and horizontal border characters
New border-char-horizontal and border-char-vertical config settings in
aerc.conf allow users to modify border appearance from the default
1-wide/tall blank space. In stylesets, border.fg now affects the
foreground color when custom characters are defined.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 69a2dcc0..d3e57c51 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -679,9 +679,10 @@ func (c *Composer) updateGrid() { c.grid.RemoveChild(c.heditors) } borderStyle := c.config.Ui.GetStyle(config.STYLE_BORDER) + borderChar := c.config.Ui.BorderCharHorizontal c.heditors = heditors c.grid.AddChild(c.heditors).At(0, 0) - c.grid.AddChild(ui.NewFill(' ', borderStyle)).At(1, 0) + c.grid.AddChild(ui.NewFill(borderChar, borderStyle)).At(1, 0) } func (c *Composer) reloadEmail() error { |