# theme: Add \`panel.overlay_background\` and \`panel.overlay_hover\` \(\#34655\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 87014cec71335c6ae20fbe3fe6299f95542103c4

Requested commit: 87014cec71335c6ae20fbe3fe6299f95542103c4

Commit: 87014cec71335c6ae20fbe3fe6299f95542103c4

Tree: 53be153852f74f805788c37ebefea91999199588

Author: Bret Comnes

Committer: GitHub

## Message

```
theme: Add `panel.overlay_background` and `panel.overlay_hover` (#34655)

In https://github.com/zed-industries/zed/pull/33994 sticky scroll was
added to project_panel.

I love this feature! 

This introduces a new element layering not seen before. On themes that
use transparency, the overlapping elements can make it difficult to read
project panel entries. This PR introduces a new selector:
~~panel.sticky_entry.background~~ `panel.overlay_background` This
selector lets you set the background of entries when they become sticky.

Closes https://github.com/zed-industries/zed/issues/34654

Before:

<img width="373" height="104" alt="Screenshot 2025-07-17 at 10 19 11 AM"
src="https://github.com/user-attachments/assets/d5bab065-53ca-4b27-b5d8-3b3f8d1f7a81"
/>

After:

<img width="292" height="445" alt="Screenshot 2025-07-17 at 11 46 57 AM"
src="https://github.com/user-attachments/assets/4cd2b87b-2989-4489-972f-872d2dc13a33"
/>

<img width="348" height="390" alt="Screenshot 2025-07-17 at 11 39 57 AM"
src="https://github.com/user-attachments/assets/49c0757f-2c50-4e01-92c6-2ae7e4132a53"
/>

<img width="668" height="187" alt="Screenshot 2025-07-17 at 11 39 29 AM"
src="https://github.com/user-attachments/assets/167536c2-5872-4306-90c6-c6b68276b618"
/>

Release Notes:

- Add `panel.sticky_entry.background` theme selector for modifying
project panel entries when they become sticky when scrolling and overlap
with entries below them.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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