summaryrefslogtreecommitdiffstats
path: root/pkg/theme
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-05-15 20:43:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-05-15 21:12:12 +1000
commit913f17ee3e2c74dac354005d0ee446ae4a6eab52 (patch)
treece8e7c922e757c339d5737c963b0bee0bceea365 /pkg/theme
parent6291c539663b8646a3c09bc6e94c3a088abd7b39 (diff)
prevent flicker from bolding background of selected line
Diffstat (limited to 'pkg/theme')
-rw-r--r--pkg/theme/theme.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/theme/theme.go b/pkg/theme/theme.go
index 259edfe04..0c85da775 100644
--- a/pkg/theme/theme.go
+++ b/pkg/theme/theme.go
@@ -24,6 +24,9 @@ var (
// SelectedLineBgColor is the background color for the selected line
SelectedLineBgColor color.Attribute
+ // SelectedRangeBgColor is the background color of the selected range of lines
+ SelectedRangeBgColor color.Attribute
+
// GocuiSelectedLineBgColor is the background color for the selected line in gocui
GocuiSelectedLineBgColor gocui.Attribute
@@ -39,6 +42,7 @@ func UpdateTheme(userConfig *viper.Viper) {
ActiveBorderColor = GetGocuiColor(userConfig.GetStringSlice("gui.theme.activeBorderColor"))
InactiveBorderColor = GetGocuiColor(userConfig.GetStringSlice("gui.theme.inactiveBorderColor"))
SelectedLineBgColor = GetBgColor(userConfig.GetStringSlice("gui.theme.selectedLineBgColor"))
+ SelectedRangeBgColor = GetBgColor(userConfig.GetStringSlice("gui.theme.selectedRangeBgColor"))
GocuiSelectedLineBgColor = GetGocuiColor(userConfig.GetStringSlice("gui.theme.selectedLineBgColor"))
OptionsColor = GetGocuiColor(userConfig.GetStringSlice("gui.theme.optionsTextColor"))
OptionsFgColor = GetFgColor(userConfig.GetStringSlice("gui.theme.optionsTextColor"))