diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:20 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:50 +0100 |
commit | a60f2c19a0a962167067547c2a74988012cf2f44 (patch) | |
tree | e3c98d3d0f7ac934eb6ee0c4cb19b1a1377cc2a8 /app/dirlist.go | |
parent | cdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1 (diff) | |
download | aerc-a60f2c19a0a962167067547c2a74988012cf2f44.tar.gz |
style: use vaxis style everywhere
Replace all tcell.Style objects with vaxis.Style objects
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/dirlist.go')
-rw-r--r-- | app/dirlist.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/dirlist.go b/app/dirlist.go index 53aeed9d..e9228374 100644 --- a/app/dirlist.go +++ b/app/dirlist.go @@ -295,12 +295,12 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) { func (dirlist *DirectoryList) renderDir( path string, conf *config.UIConfig, data models.TemplateData, selected bool, width int, -) (string, string, tcell.Style) { +) (string, string, vaxis.Style) { var left, right string var buf bytes.Buffer var styles []config.StyleObject - var style tcell.Style + var style vaxis.Style r, u, _ := dirlist.GetRUECount(path) if u > 0 { @@ -353,7 +353,7 @@ func (dirlist *DirectoryList) renderDir( left = lbuf.Truncate(lwidth-1, '…') } else { for i := 0; i < (width - lwidth - rwidth - 1); i += 1 { - lbuf.Write(' ', tcell.StyleDefault) + lbuf.Write(' ', vaxis.Style{}) } left = lbuf.String() right = rbuf.String() @@ -363,8 +363,8 @@ func (dirlist *DirectoryList) renderDir( } func (dirlist *DirectoryList) drawScrollbar(ctx *ui.Context) { - gutterStyle := tcell.StyleDefault - pillStyle := tcell.StyleDefault.Reverse(true) + gutterStyle := vaxis.Style{} + pillStyle := vaxis.Style{Attribute: vaxis.AttrReverse} // gutter ctx.Fill(0, 0, 1, ctx.Height(), ' ', gutterStyle) |