# Add support for dashed borders to GPUI \(\#27139\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cd1e56d6c7047eee596bf88cac8ba8bd6e9be395

Requested commit: cd1e56d6c7047eee596bf88cac8ba8bd6e9be395

Commit: cd1e56d6c7047eee596bf88cac8ba8bd6e9be395

Tree: 95805e752bbd162b5775c911333df942ff9c4c3d

Author: Nathan Sobo

Committer: GitHub

## Message

```
Add support for dashed borders to GPUI (#27139)

Features:

* Scales dash spacing with border width.
* Laying out dashes around rounded corners.
* Varying border widths with rounded corners - now uses an ellipse for the inner edge of the border.
* When there are no rounded corners, each straight border is laid out separately, so that the dashes to meet at the corners.
* All sides of each dash are antialiased.

![image](https://github.com/user-attachments/assets/b3789a98-a5be-4f97-9736-c4e59615afe6)

![image](https://github.com/user-attachments/assets/739bdc57-4580-42c8-bfc3-6e287411a408)

Release Notes:

- N/A

---------

Co-authored-by: Michael Sloan <michael@zed.dev>
Co-authored-by: Ben <ben@zed.dev>
```

## Parents

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

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