Conversation
Configure Apple's full-window-content chrome before the AWT peer exists so the traffic lights sit over the app's own content, and nudge the streams back button down on desktop to clear them.
Match the meta details screen's desktop back button geometry so the control lands in the same place across both screens: 32dp top padding, the standard page horizontal inset, 48dp button with a 24dp icon, and the same translucent black container. Mobile metrics are unchanged.
azooz5959
force-pushed
the
feat/macos-title-bar
branch
from
September 15, 2026 01:11
17d9b44 to
dcdcc4b
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adopts Apple's native full-window-content title bar on macOS, so the traffic
lights sit directly over the app's own artwork instead of on a separate grey
title bar strip. Also realigns the streams back button so it matches the meta
details screen and clears the traffic lights.
macOS only — Windows and Linux code paths are untouched.
Before / after
Changes
DesktopWindowChrome.kt— newconfigureMacosWindowBeforePeer(window)setsthree root pane client properties:
Main.kt— switchedWindow(...)toSwingWindow(..., init = ::configureMacosWindowBeforePeer).This matters: AWT reads those client properties when it creates the native
NSWindowpeer and ignores them afterwards, so they have to be set beforethe window is displayable.
SwingWindow'sinithook is the point where thatis guaranteed. A
check(!window.isDisplayable)assertion inconfigureMacosWindowBeforePeerfails loudly if that invariant is ever brokenby a future refactor.
No
NSWindow.styleMaskmutation and noNSVisualEffectViewinsertion into theAWT content view — both interfere with the Skiko Metal layer.
StreamsScreen.kt— under full-window-content,WindowInsets.safeDrawingreports no top inset on macOS, so the back button landed on top of the traffic
lights. The desktop branch now uses the same geometry as the meta details
screen (32dp top, standard page horizontal inset, 48dp button, 24dp icon,
translucent black container). Mobile metrics are unchanged.
Test plan
SIGSEGV/ nohs_err_pid*.logproduced across repeated launches.