Skip to content

Put the window header in the title bar row - #23

Merged
pulkitxm merged 1 commit into
Noveum:mainfrom
ReffWu:title-bar-header
Sep 15, 2026
Merged

pulkitxm merged 1 commit into
Noveum:mainfrom
ReffWu:title-bar-header

Conversation

@ReffWu

@ReffWu ReffWu commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #19. The window uses a hidden title bar, but the header was laid out below it. The window opened with a 32 point strip that held only the window buttons, then a 40 point header whose back button kept the 76 point inset meant for clearing those buttons one row higher. The back button looked detached, and the top of the window carried about 72 points of chrome.

The header now fills the title bar area, sized from the window's safe area inset instead of a fixed height, so it follows whatever title bar height the running macOS uses. The back button sits right after the window buttons, and the title and gear line up with them. Clicks still reach the header buttons. Nothing else in the layout changes; the content gains the 40 points the extra band used.

Settings before and after, light and dark

Validated with swift-format lint --strict Sources/*.swift, python3 scripts/check.py policy, and make build, plus a hit test on the back button and gear in the built window.

The header sat below the hidden title bar, so the window opened with an
empty 32 point strip above a 40 point header, and the back button kept
the 76 point inset meant for clearing the window buttons one row higher.
The header now fills the title bar area, sized from the safe area, so the
back button, title and gear line up with the window buttons.
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

@ReffWu is attempting to deploy a commit to the MagicAPI Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: c404cc8b-2a99-4d9a-a081-e8a8a87ecc83

📥 Commits

Reviewing files that changed from the base of the PR and between a1ccaf6 and 6db965e.

📒 Files selected for processing (1)
  • Sources/MainView.swift

Comment @coderabbitai help to get the list of available commands.

@pulkitxm
pulkitxm merged commit 5c6578e into Noveum:main Sep 15, 2026
2 of 3 checks passed
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.

2 participants