mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-19 22:33:16 +02:00
[#2279] defaultFgColor entry in theme config
This commit is contained in:
parent
924a152ae9
commit
37997dcbcd
@ -46,6 +46,8 @@ gui:
|
|||||||
- blue
|
- blue
|
||||||
unstagedChangesColor:
|
unstagedChangesColor:
|
||||||
- red
|
- red
|
||||||
|
defaultFgColor:
|
||||||
|
- white
|
||||||
commitLength:
|
commitLength:
|
||||||
show: true
|
show: true
|
||||||
mouseEvents: true
|
mouseEvents: true
|
||||||
|
@ -63,6 +63,7 @@ type ThemeConfig struct {
|
|||||||
CherryPickedCommitBgColor []string `yaml:"cherryPickedCommitBgColor"`
|
CherryPickedCommitBgColor []string `yaml:"cherryPickedCommitBgColor"`
|
||||||
CherryPickedCommitFgColor []string `yaml:"cherryPickedCommitFgColor"`
|
CherryPickedCommitFgColor []string `yaml:"cherryPickedCommitFgColor"`
|
||||||
UnstagedChangesColor []string `yaml:"unstagedChangesColor"`
|
UnstagedChangesColor []string `yaml:"unstagedChangesColor"`
|
||||||
|
DefaultFgColor []string `yaml:"defaultFgColor"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CommitLengthConfig struct {
|
type CommitLengthConfig struct {
|
||||||
@ -365,6 +366,7 @@ func GetDefaultConfig() *UserConfig {
|
|||||||
CherryPickedCommitBgColor: []string{"cyan"},
|
CherryPickedCommitBgColor: []string{"cyan"},
|
||||||
CherryPickedCommitFgColor: []string{"blue"},
|
CherryPickedCommitFgColor: []string{"blue"},
|
||||||
UnstagedChangesColor: []string{"red"},
|
UnstagedChangesColor: []string{"red"},
|
||||||
|
DefaultFgColor: []string{"default"},
|
||||||
},
|
},
|
||||||
CommitLength: CommitLengthConfig{Show: true},
|
CommitLength: CommitLengthConfig{Show: true},
|
||||||
SkipNoStagedFilesWarning: false,
|
SkipNoStagedFilesWarning: false,
|
||||||
|
@ -58,6 +58,6 @@ func UpdateTheme(themeConfig config.ThemeConfig) {
|
|||||||
OptionsColor = GetGocuiStyle(themeConfig.OptionsTextColor)
|
OptionsColor = GetGocuiStyle(themeConfig.OptionsTextColor)
|
||||||
OptionsFgColor = GetTextStyle(themeConfig.OptionsTextColor, false)
|
OptionsFgColor = GetTextStyle(themeConfig.OptionsTextColor, false)
|
||||||
|
|
||||||
DefaultTextColor = style.FgDefault
|
DefaultTextColor = GetTextStyle(themeConfig.DefaultFgColor, false)
|
||||||
GocuiDefaultTextColor = gocui.ColorDefault
|
GocuiDefaultTextColor = GetGocuiStyle(themeConfig.DefaultFgColor)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user