Repository navigation
Qt front end: the Mac launcher's palette, Manrope and control styles - #222
Conversation
9517706 to
07e3eab
Compare
|
@LNPANDY rebased onto current main, CI green. It only changes the look of the Qt front end (Windows), the palette, Manrope and the control styles of the Mac launcher. It can merge after the 48 hours, from 2026-10-31 19:56 UTC, unless you have objections. |
|
Reviewed against current main. The palette matches the SwiftUI app (I checked the values against
Smaller suggestions, none blocking: Once it is rebased and the Windows artifact is checked I will merge. |
07e3eab to
7cef9ed
Compare
|
@LNPANDY rebased onto current main and force-pushed (
|
…he language table Two bugs the PR review of LNPANDY#222 turned up in the current main: - `nspb_qt/i18n.py` asked `GetLocaleInfoW` for `0x02`, which is LOCALE_SLANGUAGE, the *localized display name*. On a Chinese Windows that answer is "中文(简体,中国)", the prefix test for "zh" never matched, and the early return handed the user an English interface — the very report the comment above the call says was fixed. The ISO 639 code is `0x59`, and the LANGID is masked with 0x3FF (the primary language) rather than 0xFF. - `nspb_qt/localization.py` was 18 keys behind `Localization.swift`: LNPANDY#246 added them to the Swift table without running `gen_localization.py`. They were never visible because the Windows bundle regenerates the table before packaging, but a source run of the Qt app showed the raw keys. Regenerated here. The Qt test job now regenerates the table and fails on any difference, so a string added to the Swift table cannot leave the Qt one stale again. Tests: `python -m unittest discover -s frontend-qt/tests` 179 tests OK. New: `test_windows_is_asked_for_the_iso_language_code` asserts the constant passed to the API (the existing test mocked only the answer, which is how 0x02 survived), and `test_a_windows_display_name_still_selects_the_language` covers zh/sv/de/en answers.
7d2fe91 to
b6ecbb6
Compare
Near-black background, cream accent and primary buttons, the launcher's ready, building and red for the state colours, Manrope loaded at start-up with a system-font fallback, and the Windows build ships the font with its licence. Look only, no behaviour or string changes.
The window header no longer shows the product name or the green icon tile, and the subtitle that still mentioned archive shards (removed in #162) is gone from the Swift string table and the generated Qt table. Only the language button stays in the header.
… and combo box styles Also regenerates localization.py (cheats.iosNote from #257 was missing on main).
b6ecbb6 to
309bfea
Compare
What and why
The Qt window (Windows, and macOS when run from source) still used a palette taken from old Mac screenshots: blue accent, blue-grey cards, system fonts. The Mac launcher has moved to a near-black background, a cream accent and Manrope. This brings the Qt window to the same look. Look and feel only: no behaviour change, no string change, no wordmark added.
Palette from
LauncherPaletteas hex: background #0e0e0f, surface/cards #1a1a1c, cream #fff0d6, ready #40d678, building #ffc73d, unbuilt #91949c, red #ff6b66 (the launcher's destructive red). The translucent white fills of the Mac buttons are pre-mixed into opaque colours.style.py: buttons (5.5% fill, 10% hairline, radius 9, cream primary with dark text, hover and pressed), cards with a hairline, inputs, combo boxes, menus, tooltips, scroll bars, progress bars, the log, the cream switch for check boxes and the cream slider. The dimmer path text and the brighter hint text stay distinct.Manrope:
style.load_font()registersfrontend/fonts/Manrope.ttfwithQFontDatabase.addApplicationFontat start-up and falls back to the system font if the file is missing or rejected. Monospaced text stays monospaced. Not copied: a source run reads the file the Mac app embeds, andbuild-qt.ymladds it andManrope-OFL.txtto the Windows bundle'sfontsfolder (PyInstaller--add-data).ui.py: one line, the separator colour now comes from the palette. No blue accent is left infrontend-qt.Header: the product name and the green icon tile are gone (no wordmark inside the window), and so is the subtitle that still said archive shards, which were removed in Patch queue: drop the ROMFSARC reader and the touchpad experiment (proposal) #162. The
app.subtitlekey is deleted fromLocalization.swift(it was unused there) and the Qt table is regenerated. Only the language button stays. Window title and app name are unchanged. The other archive strings describe the single romfs.img and are still accurate.The remaining change to
ui.pyis minimal so it merges easily with #206.Checked
python3 -m unittest discover -s frontend-qt/testswith PySide6 6.12: 172 run, 1 error that is also on main (test_win.InstallFailureHintTestusesM.BuildModel, which does not exist).python3 scripts/patches.py checkpasses.QWidget.grab()before and after (dependency panel, build in progress with log, failure card), next to the Mac captures fromNX_LAUNCHER_CAPTURE_DIR. Not checked: the PyInstaller bundle itself (the font path in a frozen build is only exercised by the Windows workflow) and a real Windows run.Screenshots
The CLI cannot upload images, so they are local: before in
/tmp/qtstyle/before-qt/(main-deps, build-running, failure-card), after in/tmp/qtstyle/after/(same names), Mac reference in/tmp/qtstyle/mac/.Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly: a change there is a patch inpatches/(scripts/patches.py export, andpatches.py checkpasses), with itsUpstream-StatusThis changes how the Windows app looks, so it is a product change: it waits 48h before merging.