aboutsummaryrefslogtreecommitdiffstats
path: root/app/status.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2024-02-12 06:26:20 -0600
committerRobin Jarry <robin@jarry.cc>2024-02-12 13:48:50 +0100
commita60f2c19a0a962167067547c2a74988012cf2f44 (patch)
treee3c98d3d0f7ac934eb6ee0c4cb19b1a1377cc2a8 /app/status.go
parentcdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1 (diff)
downloadaerc-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/status.go')
-rw-r--r--app/status.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/status.go b/app/status.go
index dbedea7e..952a3b98 100644
--- a/app/status.go
+++ b/app/status.go
@@ -5,7 +5,6 @@ import (
"sync"
"time"
- "github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
"git.sr.ht/~rjarry/aerc/config"
@@ -13,6 +12,7 @@ import (
"git.sr.ht/~rjarry/aerc/lib/templates"
"git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/aerc/log"
+ "git.sr.ht/~rockorager/vaxis"
)
type StatusLine struct {
@@ -23,7 +23,7 @@ type StatusLine struct {
}
type StatusMessage struct {
- style tcell.Style
+ style vaxis.Style
message string
}
@@ -60,7 +60,7 @@ func (status *StatusLine) Draw(ctx *ui.Context) {
config.Statusline.StatusColumns,
config.Statusline.ColumnSeparator,
nil,
- func(*ui.Table, int) tcell.Style { return style },
+ func(*ui.Table, int) vaxis.Style { return style },
)
var buf bytes.Buffer
cells := make([]string, len(table.Columns))
@@ -156,6 +156,6 @@ func (status *StatusLine) uiConfig() *config.UIConfig {
return SelectedAccountUiConfig()
}
-func (msg *StatusMessage) Color(style tcell.Style) {
+func (msg *StatusMessage) Color(style vaxis.Style) {
msg.style = style
}