Repository navigation
Launcher: dropdowns in the app's own style, and language names in their own language - #278
Merged
Merged
Conversation
v0lumehi
force-pushed
the
v0lumehi/styled-menus
branch
from
October 30, 2026 22:20
190db14 to
c8fa125
Compare
zynilver
pushed a commit
to zynilver/NX2Apple
that referenced
this pull request
Nov 1, 2026
… too (from PR LNPANDY#17) Upstream LNPANDY#278 (open, --platform takes a list) rewrites the out_ipa block: out_ipa moves under 'if want_ios:' indented 8 spaces, the mac_pack check becomes an out_app block, and `work` stays last. Our single anchor was written for today's shape and would have stopped matching on the first sync after LNPANDY#278 lands. JMRBDev's PR LNPANDY#17 detected that and proposed the shape split; this is that idea with one change — each shape is a single (old, new) pair instead of a delete plus an insert. His version removed the `work` line first and re-inserted it, so a future anchor drift between the two steps would have left the tree without the assignment. Verified by applying patch_nsp() to both shapes (upstream/main and a hand-built LNPANDY#278 fixture): work is assigned before out_ipa in both, and the pre-LNPANDY#278 output is byte-identical to the tree. Credit: PR LNPANDY#17.
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.
Fix or feature
What and why
The pickers in the launcher opened the system's popover, with its arrow and grey material. The language picker in Settings sat between buttons in the app's own style and looked out of place.
I added
LauncherDropdown(frontend/Sources/NSPortBuilder/LauncherDropdown.swift). It replacesLauncherMenuPicker. It uses the app's palette, Manrope, the corner radii ofLauncherSecondaryButtonStyleand the launcher's dark surface. The list is drawn by the app, not by the system. The chosen row has a checkmark. The list opens below the button, or above it when there is no room, and scrolls when it fits on neither side..launcherDropdownHost()), so the Settings scroll view does not cut it off. Each sheet is a window of its own and has its own host. A dropdown without a host opens the same list as a popover.fillkeeps the old behaviour for the controls in the sheets.中文,English,Svenska,Deutsch. Only the "system language" entry follows the UI language. The picker and the controller cycling share one list,BuilderView.languageCodes, so a new language is one more code.Pickers that use it: language, install device and signing team (Builds), controller mode and button assignment (Controls sheet), choice settings with more than three options (Launch options sheet), and the device selector (Saves sheet).
I left
row(...)inContentView.swiftalone, the wrapping of the row details is #277. The language picker keeps the 180 pt minimum from #277.Checked
cd frontend && swift build && swift testpass (512 tests, 16 skipped). New tests cover the list placement, its width, the arrow keys and the language names.NX_LAUNCHER_CAPTURE_DIR=<dir> swift test --filter LauncherDropdownTestsrenders the Settings row with the list. The popup in a running window is not checked. I did not launch the app.Screenshots
The capture test renders the Settings language row in German with the list open. The button shows "Systemsprache" in full and the list shows the endonyms with a checkmark on "Deutsch".
Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly