1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-09 09:22:48 +03:00

Add unstagedChangesColor config option

This commit is contained in:
Daniel Kiss
2022-01-29 00:15:55 +01:00
committed by Jesse Duffield
parent 91dab7fef9
commit f5a5b7f966
4 changed files with 13 additions and 4 deletions

View File

@@ -39,6 +39,8 @@ var (
OptionsFgColor = style.New()
DiffTerminalColor = style.FgMagenta
UnstagedChangesColor = style.New()
)
// UpdateTheme updates all theme variables
@@ -52,6 +54,9 @@ func UpdateTheme(themeConfig config.ThemeConfig) {
cherryPickedCommitFgTextStyle := GetTextStyle(themeConfig.CherryPickedCommitFgColor, false)
CherryPickedCommitTextStyle = cherryPickedCommitBgTextStyle.MergeStyle(cherryPickedCommitFgTextStyle)
unstagedChangesTextStyle := GetTextStyle(themeConfig.UnstagedChangesColor, false)
UnstagedChangesColor = unstagedChangesTextStyle
GocuiSelectedLineBgColor = GetGocuiStyle(themeConfig.SelectedLineBgColor)
OptionsColor = GetGocuiStyle(themeConfig.OptionsTextColor)
OptionsFgColor = GetTextStyle(themeConfig.OptionsTextColor, false)