1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Add shared function for loading map of custom colors

This commit is contained in:
Matt Cles
2022-01-31 21:23:55 -08:00
committed by Jesse Duffield
parent 4df7646654
commit 9adf4a1908
4 changed files with 20 additions and 14 deletions

View File

@ -114,8 +114,5 @@ func getFirstRune(str string) rune {
}
func SetCustomAuthors(customAuthorColors map[string]string) {
for authorName, colorSequence := range customAuthorColors {
style := style.New().SetFg(style.NewRGBColor(color.HEX(colorSequence, false)))
authorStyleCache[authorName] = style
}
authorStyleCache = utils.SetCustomColors(customAuthorColors)
}