1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-29 23:17:32 +02:00

Merge pull request #2284 from arnaudperalta/defaultfgcolor-config

Closes https://github.com/jesseduffield/lazygit/issues/2279
This commit is contained in:
Jesse Duffield 2022-11-26 13:41:41 +11:00 committed by GitHub
commit f96246c038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,8 @@ gui:
- blue
unstagedChangesColor:
- red
defaultFgColor:
- default
commitLength:
show: true
mouseEvents: true

View File

@ -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,

View File

@ -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)
}