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:
committed by
Jesse Duffield
parent
4df7646654
commit
9adf4a1908
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user