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

color fixups

This commit is contained in:
Jesse Duffield
2021-08-01 16:02:49 +10:00
parent 123d624141
commit d626bcac00
10 changed files with 28 additions and 27 deletions

View File

@ -18,10 +18,10 @@ func GetRemoteBranchListDisplayStrings(branches []*models.RemoteBranch, diffName
// getRemoteBranchDisplayStrings returns the display string of branch
func getRemoteBranchDisplayStrings(b *models.RemoteBranch, diffed bool) []string {
nameColorAttr := GetBranchColor(b.Name)
textStyle := GetBranchTextStyle(b.Name)
if diffed {
nameColorAttr = theme.DiffTerminalColor
textStyle = theme.DiffTerminalColor
}
return []string{nameColorAttr.Sprint(b.Name)}
return []string{textStyle.Sprint(b.Name)}
}