# Fix anti-aliasing artifacts in GPUI 2 borders \(\#3818\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 30624b98994b1e3331c41e11d5fbfe1f9a256347

Requested commit: 30624b98994b1e3331c41e11d5fbfe1f9a256347

Commit: 30624b98994b1e3331c41e11d5fbfe1f9a256347

Tree: e716c86cbc15c3059153372f2fdf7c6add4c95cf

Author: Nathan Sobo

Committer: GitHub

## Message

```
Fix anti-aliasing artifacts in GPUI 2 borders (#3818)

Previously, we changed borders to be drawn after content, so they are no
longer part of the same quads as the background. In our change, we gave
the background quad a transparent black border and the border quads
transparent black backgrounds. However, this caused the other channels
to blend toward that black color before becoming fully transparent,
causing them to become darker.

In this PR, I source the "placeholder" color by duplicating the values
for the other channels and only adjust the alpha down to zero.

Release Notes:

- N/A
```

## Parents

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

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

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