From 03650474e2190ef6e54413d433b3d1f63dc9993e Mon Sep 17 00:00:00 2001 From: y0ast Date: Mon, 30 Nov 2020 22:07:03 +0000 Subject: 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. --- config/bindings.go | 2 +- config/bindings_test.go | 2 +- config/config.go | 2 +- config/style.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/bindings.go b/config/bindings.go index a19d4f35..9956b41e 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 1d1cbfe2..44597362 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 51982d26..e6461338 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 af7241de..c3e85032 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" ) -- cgit