# title_bar: Improve design for call controls \(\#58691\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bd1f7378c5c3ab89cf35bfcae68a0e43d97cec79

Requested commit: bd1f7378c5c3ab89cf35bfcae68a0e43d97cec79

Commit: bd1f7378c5c3ab89cf35bfcae68a0e43d97cec79

Tree: 99b920137b3dc93e313c86a85727fe622ad33852

Author: Danilo Leal

Committer: GitHub

## Message

```
title_bar: Improve design for call controls (#58691)

For the longest time, we've had a labeled "Share" button on the title
bar whenever you're in a call. However, it was extremely easy to click
that button thinking you'd be sharing _your screen_ instead of your
project. At the end of the day, there wasn't any specific cue that'd
allow you to know what you'd be sharing. This is why people just assumed
you'd share the screen, which is arguably way more common than sharing
the project. We've seen users bump into this confusion countless times,
and this also even happens to us (the whole Zed staff) weekly whenever
we're in meetings.

So, this PR changes that button to be an icon button instead, using a
folder icon to better communicate it means sharing the project. I also
took advantage of the opportunity to change the approach we use for
adding these buttons, using `when` instead of `children.push`; I think
the former is just easier to understand, allowing to more easily picture
the UI in your (my) head. Lastly, also improved what we display in the
tooltip for the project share button, by showing the names of all
projects you'll be sharing, as well as the tooltip that displayed call
diagnostics.

| Before | After |
|--------|--------|
| <img width="778" height="360" alt="Screenshot 2026-06-05 at 3  48
2@2x"
src="https://github.com/user-attachments/assets/363593fb-79f8-42e9-83b9-345bc731846f"
/> | <img width="778" height="360" alt="Screenshot 2026-06-05 at 3  48
3@2x"
src="https://github.com/user-attachments/assets/32afc412-a1fb-45a4-a19e-74e4923c0c8b"
/> |

Release Notes:

- Improved call controls design, making it clearer what button shares
_the project_ vs. _the screen_.
```

## Parents

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

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