aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/text.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 /lib/ui/text.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 'lib/ui/text.go')
-rw-r--r--lib/ui/text.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ui/text.go b/lib/ui/text.go
index def61a0a..19a0b900 100644
--- a/lib/ui/text.go
+++ b/lib/ui/text.go
@@ -1,7 +1,7 @@
package ui
import (
- "github.com/gdamore/tcell/v2"
+ "git.sr.ht/~rockorager/vaxis"
"github.com/mattn/go-runewidth"
)
@@ -14,10 +14,10 @@ const (
type Text struct {
text string
strategy uint
- style tcell.Style
+ style vaxis.Style
}
-func NewText(text string, style tcell.Style) *Text {
+func NewText(text string, style vaxis.Style) *Text {
return &Text{
text: text,
style: style,