BlueGit

ict rusty-teams

fix(ui): keep the title bar inset in fullscreen off macOS

- Windows and Linux use a 12px content inset, not the traffic light gap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-17 · 2 weeks ago

Hash
ab494f331cc31e5764857d1ab1b9e24ca208ce05
Parent
9b4f2ac5
2 files changed +4 −2
vendor/gpui-component/PATCHES.md +1 −1
@@ -16,4 +16,4 @@ Upstream: crates.io `gpui-component 0.7.1`. Wired in via `[patch.crates-io]` in
16 16 | `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |
17 17 | `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |
18 18 | `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |
19 | `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |
19 | `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen on macOS | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |
@@ -16,4 +16,4 @@ Upstream: crates.io `gpui-component 0.7.1`. Wired in via `[patch.crates-io]` in
16| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |
16| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |
17| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |
17| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |
18| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |
18| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |
19| `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |
19| `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen on macOS | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |
vendor/gpui-component/src/title_bar.rs +3 −1
@@ -336,7 +336,9 @@ impl RenderOnce for TitleBar {
336 336 .justify_between()
337 337 .h(TITLE_BAR_HEIGHT)
338 338 // The macOS traffic lights are hidden in fullscreen, so their inset goes too.
339 .when(!window.is_fullscreen(), |this| this.pl(TITLE_BAR_LEFT_PADDING))
339 .when(!(cfg!(target_os = "macos") && window.is_fullscreen()), |this| {
340 this.pl(TITLE_BAR_LEFT_PADDING)
341 })
340 342 .border_b_1()
341 343 .border_color(cx.theme().title_bar_border)
342 344 .bg(default_title_bar_background(
@@ -336,7 +336,9 @@ impl RenderOnce for TitleBar {
336 .justify_between()
336 .justify_between()
337 .h(TITLE_BAR_HEIGHT)
337 .h(TITLE_BAR_HEIGHT)
338 // The macOS traffic lights are hidden in fullscreen, so their inset goes too.
338 // The macOS traffic lights are hidden in fullscreen, so their inset goes too.
339 .when(!window.is_fullscreen(), |this| this.pl(TITLE_BAR_LEFT_PADDING))
339 .when(!(cfg!(target_os = "macos") && window.is_fullscreen()), |this| {
340 this.pl(TITLE_BAR_LEFT_PADDING)
341 })
340 .border_b_1()
342 .border_b_1()
341 .border_color(cx.theme().title_bar_border)
343 .border_color(cx.theme().title_bar_border)
342 .bg(default_title_bar_background(
344 .bg(default_title_bar_background(