aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ui/context.go4
-rw-r--r--lib/ui/fill.go8
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/ui/context.go b/lib/ui/context.go
index f1cc2a95..12621c8a 100644
--- a/lib/ui/context.go
+++ b/lib/ui/context.go
@@ -43,7 +43,7 @@ func (ctx *Context) Subcontext(x, y, width, height int) *Context {
return &Context{win, x, y, ctx.onPopover}
}
-func (ctx *Context) SetCell(x, y int, ch rune, style tcell.Style) {
+func (ctx *Context) SetCell(x, y int, ch rune, style vaxis.Style) {
width, height := ctx.window.Size()
if x >= width || y >= height {
// no-op when dims are inadequate
@@ -53,7 +53,7 @@ func (ctx *Context) SetCell(x, y int, ch rune, style tcell.Style) {
Character: vaxis.Character{
Grapheme: string(ch),
},
- Style: tcell.VaxisStyle(style),
+ Style: style,
})
}
diff --git a/lib/ui/fill.go b/lib/ui/fill.go
index ff248905..eedb481e 100644
--- a/lib/ui/fill.go
+++ b/lib/ui/fill.go
@@ -1,15 +1,13 @@
package ui
-import (
- "github.com/gdamore/tcell/v2"
-)
+import "git.sr.ht/~rockorager/vaxis"
type Fill struct {
Rune rune
- Style tcell.Style
+ Style vaxis.Style
}
-func NewFill(f rune, s tcell.Style) Fill {
+func NewFill(f rune, s vaxis.Style) Fill {
return Fill{f, s}
}