diff --git a/docs/Config.md b/docs/Config.md index aa5ceaaf9..c093377d1 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -46,6 +46,8 @@ gui: - blue unstagedChangesColor: - red + defaultFgColor: + - white 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) }