# themes: Make background colors partly transparent by default \(\#24151\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 13b7be12bd8879d8d34268bc3c799ae7945b2ea0

Requested commit: 13b7be12bd8879d8d34268bc3c799ae7945b2ea0

Commit: 13b7be12bd8879d8d34268bc3c799ae7945b2ea0

Tree: 83e88aef03680a417daa4f86ee2a01ba049c15fd

Author: Max Brunsfeld

Committer: GitHub

## Message

```
themes: Make background colors partly transparent by default (#24151)

Certain themes define the `created` and `deleted` status colors, but not
`created_background` and `deleted_background`. Previously, Zed would use
`created` and `deleted` colors, and apply a hard-coded opacity change,
but *not* use `created_background` and `deleted_background`, but that
behavior was inadvertently changed in
https://github.com/zed-industries/zed/pull/22994.

This PR restores the old behavior as a fallback. If a theme defines a
status color, but not the corresponding background color, we'll use a
75% transparent version of the foreground color as a fallback.

Release Notes:

- Fixed an issue in certain themes where diffs would render with the
wrong red and green colors for deletions and insertions.
```

## Parents

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

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