summaryrefslogtreecommitdiffstats
path: root/pkg/theme
diff options
context:
space:
mode:
authorElwardi <elwardifadeli@gmail.com>2021-08-09 11:52:00 +0100
committerElwardi <elwardifadeli@gmail.com>2021-08-09 11:52:00 +0100
commite8e4fa59572915f669c5daf272bb5721f53de2d7 (patch)
tree351e8c1e4cb8c93eaccb4df9669961d0a5c7913d /pkg/theme
parentb5d8849c06de3d0ea410e0ba03e66b101b1ec626 (diff)
Add color functions to templates funcMaps
Diffstat (limited to 'pkg/theme')
-rw-r--r--pkg/theme/style.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/theme/style.go b/pkg/theme/style.go
index 8f607256d..69c404e3b 100644
--- a/pkg/theme/style.go
+++ b/pkg/theme/style.go
@@ -6,8 +6,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/utils"
)
-var colorMap = style.ColorMap
-
func GetTextStyle(keys []string, background bool) style.TextStyle {
s := style.New()
@@ -20,7 +18,7 @@ func GetTextStyle(keys []string, background bool) style.TextStyle {
case "underline":
s = s.SetUnderline()
default:
- value, present := colorMap[key]
+ value, present := style.ColorMap[key]
if present {
var c style.TextStyle
if background {