aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui
diff options
context:
space:
mode:
authory0ast <joost@joo.st>2020-11-30 22:07:03 +0000
committerReto Brunner <reto@labrat.space>2020-12-18 07:23:22 +0100
commit03650474e2190ef6e54413d433b3d1f63dc9993e (patch)
tree3b6f7df5a249eba9382de495553583795052bc3b /lib/ui
parentaf0a2b9a46e5d7f015682ebc1522bd421d7fe3dd (diff)
downloadaerc-03650474e2190ef6e54413d433b3d1f63dc9993e.tar.gz
update tcell to v2 and enable TrueColor support
Also update to the tcell v2 PaletteColor api, which should keep the chosen theme of the user intact. Note, that if $TRUECOLOR is defined and a truecolor given, aerc will now stop clipping the value to one of the theme colors. Generally this is desired behaviour though.
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/borders.go2
-rw-r--r--lib/ui/context.go4
-rw-r--r--lib/ui/fill.go2
-rw-r--r--lib/ui/grid.go2
-rw-r--r--lib/ui/interfaces.go2
-rw-r--r--lib/ui/popover.go2
-rw-r--r--lib/ui/stack.go2
-rw-r--r--lib/ui/tab.go2
-rw-r--r--lib/ui/text.go2
-rw-r--r--lib/ui/textinput.go2
-rw-r--r--lib/ui/ui.go2
11 files changed, 12 insertions, 12 deletions
diff --git a/lib/ui/borders.go b/lib/ui/borders.go
index 99d6880d..fd49e7fe 100644
--- a/lib/ui/borders.go
+++ b/lib/ui/borders.go
@@ -1,7 +1,7 @@
package ui
import (
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
"git.sr.ht/~sircmpwn/aerc/config"
)
diff --git a/lib/ui/context.go b/lib/ui/context.go
index 6bdf76ae..7936f359 100644
--- a/lib/ui/context.go
+++ b/lib/ui/context.go
@@ -3,8 +3,8 @@ package ui
import (
"fmt"
- "github.com/gdamore/tcell"
- "github.com/gdamore/tcell/views"
+ "github.com/gdamore/tcell/v2"
+ "github.com/gdamore/tcell/v2/views"
"github.com/mattn/go-runewidth"
)
diff --git a/lib/ui/fill.go b/lib/ui/fill.go
index 4d364787..0ab4f74b 100644
--- a/lib/ui/fill.go
+++ b/lib/ui/fill.go
@@ -1,7 +1,7 @@
package ui
import (
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
)
type Fill rune
diff --git a/lib/ui/grid.go b/lib/ui/grid.go
index cff55777..f505ce02 100644
--- a/lib/ui/grid.go
+++ b/lib/ui/grid.go
@@ -6,7 +6,7 @@ import (
"sync"
"sync/atomic"
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
)
type Grid struct {
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go
index 1f2f2849..7e117256 100644
--- a/lib/ui/interfaces.go
+++ b/lib/ui/interfaces.go
@@ -1,7 +1,7 @@
package ui
import (
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
)
// Drawable is a UI component that can draw. Unless specified, all methods must
diff --git a/lib/ui/popover.go b/lib/ui/popover.go
index a76f2225..7a539de1 100644
--- a/lib/ui/popover.go
+++ b/lib/ui/popover.go
@@ -1,6 +1,6 @@
package ui
-import "github.com/gdamore/tcell"
+import "github.com/gdamore/tcell/v2"
type Popover struct {
x, y, width, height int
diff --git a/lib/ui/stack.go b/lib/ui/stack.go
index c9004a0d..53714084 100644
--- a/lib/ui/stack.go
+++ b/lib/ui/stack.go
@@ -5,7 +5,7 @@ import (
"git.sr.ht/~sircmpwn/aerc/config"
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
)
type Stack struct {
diff --git a/lib/ui/tab.go b/lib/ui/tab.go
index cd5f4485..2cd8828a 100644
--- a/lib/ui/tab.go
+++ b/lib/ui/tab.go
@@ -3,7 +3,7 @@ package ui
import (
"io"
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
"git.sr.ht/~sircmpwn/aerc/config"
diff --git a/lib/ui/text.go b/lib/ui/text.go
index 455c2eb6..ffae1938 100644
--- a/lib/ui/text.go
+++ b/lib/ui/text.go
@@ -1,7 +1,7 @@
package ui
import (
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
)
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go
index 24450658..e96499a9 100644
--- a/lib/ui/textinput.go
+++ b/lib/ui/textinput.go
@@ -4,7 +4,7 @@ import (
"math"
"time"
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
"git.sr.ht/~sircmpwn/aerc/config"
diff --git a/lib/ui/ui.go b/lib/ui/ui.go
index ee71f8ec..66c2a054 100644
--- a/lib/ui/ui.go
+++ b/lib/ui/ui.go
@@ -3,7 +3,7 @@ package ui
import (
"sync/atomic"
- "github.com/gdamore/tcell"
+ "github.com/gdamore/tcell/v2"
)
type UI struct {