Skip to content

fix(ui): hide the titlebar spacer toolbar in native full screen - #364

Merged
arzafran merged 2 commits into
mainfrom
fix/fullscreen-toolbar-strip
Sep 21, 2026
Merged

arzafran merged 2 commits into
mainfrom
fix/fullscreen-toolbar-strip

Conversation

@arzafran

Copy link
Copy Markdown
Member

What this does

When the main window goes into native full screen, macOS was drawing the app's invisible spacer toolbar as a solid opaque strip across the top, covering the sidebar header and tab strip. This fix hides that toolbar for the duration of full screen and brings it back when the window returns to windowed mode, so full screen keeps the same edge-to-edge layout as windowed.

Summary

  • Hoisted the spacer toolbar's identifier to a shared mainWindowToolbarIdentifier constant so it can be matched from outside the configuration function.
  • Added AppDelegate.syncMainWindowToolbarVisibility(_:inFullScreen:), driven by willEnterFullScreenNotification / willExitFullScreenNotification observers installed once at launch, plus an explicit check at window-configuration time to cover restoring a window that's already in full screen (session restore).

Test Plan

  • Added testMainWindowSpacerToolbarHidesInFullScreenAndReturnsAfter covering: toolbar hides on full-screen entry, restores on exit, and a foreign (non-main) toolbar is left untouched.
  • Debug build verified locally via xcodebuild ... build (BUILD SUCCEEDED).
  • CI unit tests to confirm.

Native full screen rendered the invisible spacer toolbar (which only exists
to center the traffic lights on the sidebar header) as an opaque strip across
the top of the window, covering the sidebar controls and the tab strip. Hide
the toolbar on will-enter and restore it on will-exit so full screen keeps the
windowed layout.

@darkestdarky-bot darkestdarky-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff hides the main window's spacer toolbar during native full screen to prevent an opaque strip from covering the sidebar header and tab strip. It hoists the toolbar identifier to a constant, installs notification observers for full-screen entry/exit, and applies the visibility rule at window configuration time for session restore. The change is confined to the toolbar visibility logic and includes a unit test. No security, data-loss, or performance issues are introduced.

Review coverage: 127/127 diff lines supplied. Partial input (truncated: standards). Inline comments are limited to fully visible, valid right-side hunks. Reviewed commit: 202cc94d14381ef655266318546f717eceb6eb0b.

@arzafran
arzafran merged commit 7fc7fac into main Sep 21, 2026
17 checks passed
@arzafran
arzafran deleted the fix/fullscreen-toolbar-strip branch September 21, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant