1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00

[#2279] defaultFgColor entry in theme config

This commit is contained in:
Arnaud PERALTA 2022-11-20 19:05:42 +01:00
parent 924a152ae9
commit 37997dcbcd
3 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,8 @@ gui:
- blue
unstagedChangesColor:
- red
defaultFgColor:
- white
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)
}