mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
color fixups
This commit is contained in:
@ -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)}
|
||||
}
|
||||
|
Reference in New Issue
Block a user