diff options
author | Arnaud PERALTA <arnaud.peralta@gmail.com> | 2022-11-20 19:05:42 +0100 |
---|---|---|
committer | Arnaud PERALTA <arnaud.peralta@gmail.com> | 2022-11-21 21:48:18 +0100 |
commit | 37997dcbcd3797f841bebe7d96ab9a1e0814cff3 (patch) | |
tree | 21dda403a73571415700eb276d72517ce6b7a2e0 /pkg | |
parent | 924a152ae92372a178bd0fc32b411612b995a6a1 (diff) |
[#2279] defaultFgColor entry in theme config
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/config/user_config.go | 2 | ||||
-rw-r--r-- | pkg/theme/theme.go | 4 |
2 files changed, 4 insertions, 2 deletions
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) } |