# Fix anti-aliasing artifacts in borders · gitcafe/zed

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

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

Visibility: public

Requested revision: 21f0409e3bf2cb760fa045e9630ee2f936924f90

Requested commit: 21f0409e3bf2cb760fa045e9630ee2f936924f90

Commit: 21f0409e3bf2cb760fa045e9630ee2f936924f90

Tree: 55f5c21ff9a637002bb6a55594ed0bb89ebfee27

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Fix anti-aliasing artifacts in borders

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.

```

## Parents

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

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