-
-
Notifications
You must be signed in to change notification settings - Fork 986
Add cleaner titlebar visibility options #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lawrencecchen
wants to merge
30
commits into
main
Choose a base branch
from
task-hover-icons-hide-titlebar
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b77d7c2
Add titlebar visibility options
lawrencecchen ca6f83f
Refine hidden titlebar behavior
lawrencecchen cdcfa19
Remove hidden titlebar safe-area gap
lawrencecchen c8d561c
Add Bonsplit hidden-titlebar drag regression test
lawrencecchen 7385a01
Fix hidden-titlebar pane tab bar controls
lawrencecchen d5cf95a
Tighten hidden titlebar pane tab layout
lawrencecchen 6b281dc
Remove hidden titlebar top gap
lawrencecchen 3e75be2
Fix hidden-titlebar tab drag host
lawrencecchen cf3a132
Fix hidden-titlebar pane drag regression
lawrencecchen 6244e49
Add hidden-titlebar top-gap UI test
lawrencecchen d7d6c60
Remove titlebar accessories when hidden
lawrencecchen 945881b
Use non-movable pane tab bar host
lawrencecchen cc51646
Underlap hidden workspace content
lawrencecchen dc394ad
Strengthen hidden titlebar UI regressions
lawrencecchen 9ecefc5
Remove Bonsplit hidden-titlebar inset
lawrencecchen 239ec1d
Wait for Bonsplit UI test setup readiness
lawrencecchen a82fa63
Add hidden titlebar chrome UI regressions
lawrencecchen 18d2d5f
Fix hidden titlebar chrome regressions
lawrencecchen 5cd4b30
Assert tab drag does not move the window
lawrencecchen 67f2bda
Add raw mouse Bonsplit drag UI regression
lawrencecchen afd2d21
Fix hidden-titlebar Bonsplit tab drags
lawrencecchen 278a2ff
Stabilize Bonsplit drag UI tests
lawrencecchen 5c42da4
Add stronger Bonsplit drag reorder regression
lawrencecchen f1e0abe
Fix hidden-titlebar Bonsplit tab reorder drops
lawrencecchen 8d96c97
Add stronger Bonsplit drag and titlebar regressions
lawrencecchen ae0a4e3
Fix hidden-titlebar traffic lights and Bonsplit drops
lawrencecchen b61698c
test: cover hidden-titlebar collapsed-sidebar controls
lawrencecchen 87ee59f
fix: collapse hidden-titlebar controls with hidden sidebar
lawrencecchen 39d8cc2
test: cover hidden-titlebar sidebar traffic-light gap
lawrencecchen 3a41872
fix: align hidden-titlebar tabs with the sidebar edge
lawrencecchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: manaflow-ai/cmux
Length of output: 8792
🏁 Script executed:
rg -n "enum ChromeControlsVisibilityMode" -A 20 --type swiftRepository: manaflow-ai/cmux
Length of output: 1632
🏁 Script executed:
rg -n "extension ChromeControlsVisibilityMode" -A 15 --type swiftRepository: manaflow-ai/cmux
Length of output: 1056
Add separate mode display name keys for
paneTabBarControlsor explicitly document intentional key sharing.The
paneTabBarControlspicker usesChromeControlsVisibilityMode.displayName, which hardcodes localization keys fromsettings.app.titlebarControls.alwaysandsettings.app.titlebarControls.hover(lines 3047-3049 in cmuxApp.swift). While both controls share the same enum, this creates implicit coupling.Consider either:
settings.app.paneTabBarControls.alwaysandsettings.app.paneTabBarControls.hoverkeys to the localization file for independent control, ordisplayNameimplementation to make the key sharing explicit and documented in code.Currently, changes to titlebar mode labels would unintentionally affect pane tab bar mode labels.
🤖 Prompt for AI Agents