# Add shadow back for blurred/transparent window on macOS \(\#27403\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1d684c889083663cf0ad51f07e3f8e2ce1a89c5c

Requested commit: 1d684c889083663cf0ad51f07e3f8e2ce1a89c5c

Commit: 1d684c889083663cf0ad51f07e3f8e2ce1a89c5c

Tree: 590a2225e54d98851873967899127e8a3ef0e3fd

Author: alphaArgon

Committer: GitHub

## Message

```
Add shadow back for blurred/transparent window on macOS (#27403)

Closes #15383
Closes #10993

`NSVisualEffectView` is an official API for implementing blur effects
and, by traversing the layers, we **can remove the background color**
that comes with the view. This avoids using private APIs and aligns
better with macOS’s native design.

Currently, `GPUIView` serves as the content view of the window. To add
the blurred view, `GPUIView` is downgraded to a subview of the content
view, placed at the same level as the blurred view.

Release Notes:

- Fixed the missing shadow for blurred-background windows on macOS.

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
```

## Parents

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

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