diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-06-15 13:39:11 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-06-15 21:47:52 +0200 |
commit | 77c5d1761d0743b6704b660b956deeee0d963a65 (patch) | |
tree | afad8cb3587629b37030e55e7796d543f31ff382 /pkg/gui/gui.go | |
parent | 6ab5d7f69ba51f9b261cc2179ef8f82cfa35be81 (diff) |
Add nerdFontsVersion config
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index b429bda27..b922c5f77 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -496,7 +496,11 @@ func NewGui( gui.c = helperCommon authors.SetCustomAuthors(gui.UserConfig.Gui.AuthorColors) - icons.SetIconEnabled(gui.UserConfig.Gui.ShowIcons) + if gui.UserConfig.Gui.NerdFontsVersion != "" { + icons.SetNerdFontsVersion(gui.UserConfig.Gui.NerdFontsVersion) + } else if gui.UserConfig.Gui.ShowIcons { + icons.SetNerdFontsVersion("2") + } presentation.SetCustomBranches(gui.UserConfig.Gui.BranchColors) gui.BackgroundRoutineMgr = &BackgroundRoutineMgr{gui: gui} |