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:
parent
924a152ae9
commit
37997dcbcd
@ -46,6 +46,8 @@ gui:
|
||||
- blue
|
||||
unstagedChangesColor:
|
||||
- red
|
||||
defaultFgColor:
|
||||
- white
|
||||
commitLength:
|
||||
show: true
|
||||
mouseEvents: true
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user