# gpui: Fix transparent titlebar in fullscreen mode on macOS \(\#26403\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6cfc4dc857b33929ad96e9f9acb4dd533a4f5c59

Requested commit: 6cfc4dc857b33929ad96e9f9acb4dd533a4f5c59

Commit: 6cfc4dc857b33929ad96e9f9acb4dd533a4f5c59

Tree: 1963442ac955db0f39cdb86871bb39b517aac86e

Author: Smit Barmase

Committer: GitHub

## Message

```
gpui: Fix transparent titlebar in fullscreen mode on macOS (#26403)

Closes #23735

This PR fixes an issue where Zed shows a transparent title bar in
fullscreen mode on macOS instead of the default gray one.

When switching to fullscreen mode, we change the title bar appearance to
opaque. When exiting fullscreen mode, we check the existing
`appears_transparent` flag that we pass to gpui to decide whether to
change the title bar back to transparent or not.

Note: Regardless of the `appears_transparent` flag, gpui should always
show an opaque title bar in fullscreen mode to prevent a broken
appearance, as macOS always displays the title bar in fullscreen mode
upon mouse interaction.


https://github.com/user-attachments/assets/211fb185-239b-454e-ac7f-b93b25d33805

Release Notes:

- Fixed issue where Zed showed transparent titlebar in fullscreen mode
on macOS.
```

## Parents

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

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