Skip to content

Commit

Permalink
feat: background unchanged + add a small var for that
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanix-Darker authored and dlvhdr committed Aug 12, 2023
1 parent 97b1ec3 commit 6b8dc15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/components/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ func (pr *PullRequest) renderLines() string {
deletions = pr.Data.Deletions
}

diffs := "\033[32m+%d \033[31m-%d"
return pr.getTextStyle().Render(
fmt.Sprintf(
"\033[0;32m+%d\033[0m \033[0;31m-%d\033[0m",
fmt.Sprintf(
diffs,
pr.Data.Additions,
deletions,
),
)
)
}

func (pr *PullRequest) renderTitle() string {
Expand Down

0 comments on commit 6b8dc15

Please sign in to comment.