# ui: Use VersionControl colors for added and removed diff stats \(\#64083\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9862d8ea21383d3f4f99a42819d71d7abb6de9d2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9862d8ea21383d3f4f99a42819d71d7abb6de9d2

Requested commit: 9862d8ea21383d3f4f99a42819d71d7abb6de9d2

Commit: 9862d8ea21383d3f4f99a42819d71d7abb6de9d2

Tree: 029ad21ecf2031cf3fcf8592c7c1c3b931aa2daa

Author: kvechkanov

Committer: GitHub

## Message

```
ui: Use VersionControl colors for added and removed diff stats (#64083)

# Objective
Fixes #63806 
Diff stats use general `success` and `error` colors for added and
deleted line counts.

## Solution

Using `version_control.added` and `version_control.deleted` instead to
match the version control icons color palette.

## Testing

- Did you test these changes? If so, how?
built and ran locally.


- Are there any parts that need more testing?
no
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
no
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase

<details>
  <summary>Click to view showcase</summary>

<img width="2394" height="776" alt="zed_diff_stat_colors"
src="https://github.com/user-attachments/assets/5c3f89fd-4a07-4fc8-83f9-5f6e133dfe86"
/>
Left Zed - unchanged
Right Zed - fixed

</details>

---

Release Notes:

- Fixed diff statistics to use the theme’s version-control colors for
added and deleted line counts.
```

## Parents

- [169a2b11ab17407c987aa78187c91a7c665fb2d5](https://git.cafe/gitcafe/zed/commit/169a2b11ab17407c987aa78187c91a7c665fb2d5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9862d8ea21383d3f4f99a42819d71d7abb6de9d2?format=markdown)
