diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:18 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:47 +0100 |
commit | f001f65240f85f0af91703dbcc0b068c0797297a (patch) | |
tree | c3e7e60f6000137a766b0c2313ac4f27009fffa6 /app/msgviewer.go | |
parent | 0fd5f4115792e706f73202d77fac404c0033333b (diff) | |
download | aerc-f001f65240f85f0af91703dbcc0b068c0797297a.tar.gz |
fill: replace tcell.Style with vaxis.Style
Replace the Fill implementation with vaxis style objects
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/msgviewer.go')
-rw-r--r-- | app/msgviewer.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/msgviewer.go b/app/msgviewer.go index a22d2c15..179deca4 100644 --- a/app/msgviewer.go +++ b/app/msgviewer.go @@ -13,6 +13,7 @@ import ( "github.com/danwakefield/fnmatch" "github.com/emersion/go-message/textproto" + "github.com/gdamore/tcell/v2" "github.com/mattn/go-runewidth" "git.sr.ht/~rjarry/aerc/config" @@ -145,10 +146,10 @@ func NewMessageViewer( grid.AddChild(header).At(0, 0) if msg.MessageDetails() != nil || acct.UiConfig().IconUnencrypted != "" { grid.AddChild(NewPGPInfo(msg.MessageDetails(), acct.UiConfig())).At(1, 0) - grid.AddChild(ui.NewFill(borderChar, borderStyle)).At(2, 0) + grid.AddChild(ui.NewFill(borderChar, tcell.VaxisStyle(borderStyle))).At(2, 0) grid.AddChild(switcher).At(3, 0) } else { - grid.AddChild(ui.NewFill(borderChar, borderStyle)).At(1, 0) + grid.AddChild(ui.NewFill(borderChar, tcell.VaxisStyle(borderStyle))).At(1, 0) grid.AddChild(switcher).At(2, 0) } |