summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/Config.md2
-rw-r--r--pkg/config/user_config.go2
-rw-r--r--pkg/theme/theme.go4
3 files changed, 6 insertions, 2 deletions
diff --git a/docs/Config.md b/docs/Config.md
index aa5ceaaf9..691f791f5 100644
--- a/docs/Config.md
+++ b/docs/Config.md
@@ -46,6 +46,8 @@ gui:
- blue
unstagedChangesColor:
- red
+ defaultFgColor:
+ - default
commitLength:
show: true
mouseEvents: true
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index c31c74fe0..52d034f43 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -63,6 +63,7 @@ type ThemeConfig struct {
CherryPickedCommitBgColor []string `yaml:"cherryPickedCommitBgColor"`
CherryPickedCommitFgColor []string `yaml:"cherryPickedCommitFgColor"`
UnstagedChangesColor []string `yaml:"unstagedChangesColor"`
+ DefaultFgColor []string `yaml:"defaultFgColor"`
}
type CommitLengthConfig struct {
@@ -365,6 +366,7 @@ func GetDefaultConfig() *UserConfig {
CherryPickedCommitBgColor: []string{"cyan"},
CherryPickedCommitFgColor: []string{"blue"},
UnstagedChangesColor: []string{"red"},
+ DefaultFgColor: []string{"default"},
},
CommitLength: CommitLengthConfig{Show: true},
SkipNoStagedFilesWarning: false,
diff --git a/pkg/theme/theme.go b/pkg/theme/theme.go
index 0970e08b7..62df8b50d 100644
--- a/pkg/theme/theme.go
+++ b/pkg/theme/theme.go
@@ -58,6 +58,6 @@ func UpdateTheme(themeConfig config.ThemeConfig) {
OptionsColor = GetGocuiStyle(themeConfig.OptionsTextColor)
OptionsFgColor = GetTextStyle(themeConfig.OptionsTextColor, false)
- DefaultTextColor = style.FgDefault
- GocuiDefaultTextColor = gocui.ColorDefault
+ DefaultTextColor = GetTextStyle(themeConfig.DefaultFgColor, false)
+ GocuiDefaultTextColor = GetGocuiStyle(themeConfig.DefaultFgColor)
}