summaryrefslogtreecommitdiffstats
path: root/pkg/theme/theme.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/theme/theme.go')
-rw-r--r--pkg/theme/theme.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/theme/theme.go b/pkg/theme/theme.go
index b19af5e54..ba2848254 100644
--- a/pkg/theme/theme.go
+++ b/pkg/theme/theme.go
@@ -32,6 +32,9 @@ var (
// SelectedRangeBgColor is the background color of the selected range of lines
SelectedRangeBgColor = style.New()
+
+ // CherryPickedCommitColor is the text style when cherry picking a commit
+ CherryPickedCommitTextStyle = style.New()
OptionsFgColor = style.New()
@@ -44,6 +47,11 @@ func UpdateTheme(themeConfig config.ThemeConfig) {
InactiveBorderColor = GetGocuiStyle(themeConfig.InactiveBorderColor)
SelectedLineBgColor = GetTextStyle(themeConfig.SelectedLineBgColor, true)
SelectedRangeBgColor = GetTextStyle(themeConfig.SelectedRangeBgColor, true)
+
+ var cherryPickedCommitBgTextStyle = GetTextStyle(themeConfig.CherryPickedCommitBgColor, true)
+ var cherryPickedCommitFgTextStyle = GetTextStyle(themeConfig.CherryPickedCommitFgColor, false)
+ CherryPickedCommitTextStyle = cherryPickedCommitBgTextStyle.MergeStyle(cherryPickedCommitFgTextStyle)
+
GocuiSelectedLineBgColor = GetGocuiStyle(themeConfig.SelectedLineBgColor)
OptionsColor = GetGocuiStyle(themeConfig.OptionsTextColor)
OptionsFgColor = GetTextStyle(themeConfig.OptionsTextColor, false)