about summary refs log tree commit diff stats
path: root/config
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 /config
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 'config')
-rw-r--r--config/bindings.go2
-rw-r--r--config/bindings_test.go2
-rw-r--r--config/config.go2
-rw-r--r--config/style.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/config/bindings.go b/config/bindings.go
index a19d4f3..9956b41 100644
--- a/config/bindings.go
+++ b/config/bindings.go
@@ -7,7 +7,7 @@ import (
 	"io"
 	"strings"
 
-	"github.com/gdamore/tcell"
+	"github.com/gdamore/tcell/v2"
 )
 
 type KeyStroke struct {
diff --git a/config/bindings_test.go b/config/bindings_test.go
index 1d1cbfe..4459736 100644
--- a/config/bindings_test.go
+++ b/config/bindings_test.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"testing"
 
-	"github.com/gdamore/tcell"
+	"github.com/gdamore/tcell/v2"
 	"github.com/stretchr/testify/assert"
 )
 
diff --git a/config/config.go b/config/config.go
index 51982d2..e646133 100644
--- a/config/config.go
+++ b/config/config.go
@@ -14,7 +14,7 @@ import (
 	"time"
 	"unicode"
 
-	"github.com/gdamore/tcell"
+	"github.com/gdamore/tcell/v2"
 	"github.com/go-ini/ini"
 	"github.com/imdario/mergo"
 	"github.com/kyoh86/xdg"
diff --git a/config/style.go b/config/style.go
index af7241d..c3e8503 100644
--- a/config/style.go
+++ b/config/style.go
@@ -8,7 +8,7 @@ import (
 	"regexp"
 	"strings"
 
-	"github.com/gdamore/tcell"
+	"github.com/gdamore/tcell/v2"
 	"github.com/go-ini/ini"
 	"github.com/mitchellh/go-homedir"
 )