diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-26 13:41:41 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 13:41:41 +1100 |
commit | f96246c03806e5de512a6e32777418ed2345d00d (patch) | |
tree | 1fd97962c9c8a49e341e9b3683e8ab67b3374930 /pkg | |
parent | 773eb0310f904e8ad0a098cccd1efae4c1e832e9 (diff) | |
parent | 03ce22f3c94955aa5f88decbeb48bdbdb27eb8fd (diff) |
Merge pull request #2284 from arnaudperalta/defaultfgcolor-config
Closes https://github.com/jesseduffield/lazygit/issues/2279
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) } |