diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-23 11:57:12 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-23 18:37:19 +1100 |
commit | fabdda0492c36bca691176485add9e013680f4dd (patch) | |
tree | 2b0123a014ed80d23e040e618c8503105aeb98f9 /pkg/gui/gui.go | |
parent | 6fc3290a05a76f3e68fcbf5500c29a0c6f13da02 (diff) |
allow customizing background color in staging mode
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 174e124af..929c4ba88 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -500,6 +500,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { } } + userConfig := gui.Config.GetUserConfig() v, err := g.SetView(main, leftSideWidth+panelSpacing, 0, mainPanelRight, mainPanelBottom, gocui.LEFT) if err != nil { if err.Error() != "unknown view" { @@ -541,7 +542,6 @@ func (gui *Gui) layout(g *gocui.Gui) error { } filesView.Highlight = true filesView.Title = gui.Tr.SLocalize("FilesTitle") - v.FgColor = textColor } branchesView, err := g.SetViewBeneath("branches", "files", vHeights["branches"]) @@ -586,8 +586,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { return err } v.Frame = false - userConfig := gui.Config.GetUserConfig() - v.FgColor = theme.GetColor(userConfig.GetStringSlice("gui.theme.optionsTextColor")) + v.FgColor = theme.GetGocuiColor(userConfig.GetStringSlice("gui.theme.optionsTextColor")) } if gui.getCommitMessageView() == nil { |