Skip to content

Polish the standalone desktop app on macOS - #211

Merged
huacnlee merged 2 commits into
mainfrom
standalone-desktop-polish
Sep 14, 2026
Merged

huacnlee merged 2 commits into
mainfrom
standalone-desktop-polish

Conversation

@huacnlee

Copy link
Copy Markdown
Owner

Summary

  • Cmd+W (StandardKey.Close) closes the frameless window through the host; a Dock click with no visible window emits reopenRequested and the window is summoned again.
  • macOS keeps the bundle's plated omamail.icns in the Dock instead of the bare SVG; make app-run reads the plated icon out of the ICNS chunks (no icns image plugin needed). The plate is redrawn on Apple's 824pt grid so it no longer looks larger than neighbouring apps; ICNS/ICO regenerated with provenance and checksums updated.
  • Window frame is one device pixel in Color.border; four corner handles show diagonal cursors and start a system resize; default size 1024×768.
  • Light fallback palette is Flexoki Light (matching the website and gpui-omarchy); popups default to the window background.
  • Settings gains an APPEARANCE row (System / Light / Dark), shown only by the standalone host and only when no Omarchy theme is installed. Values live in ui/settings/Appearance.js.
  • Website Install section: Omarchy plugin first, then the standalone app behind macOS / Linux tabs (Windows instructions removed).

Test plan

  • ctest --test-dir app/build --output-on-failure (7/7)
  • qmltestrunner -input app/tests/qml/tst_host_contract.qml … (28 passed)
  • make test-qml (885 passed, 14 skipped)
  • make test-js
  • bash tests/test_source.sh
  • python3 app/tests/test_identity.py, app/tests/test_package.py, tests/test_website_install.py
  • Manually on macOS: Dock shows the plated icon for both bundle and make app-run; Cmd+W hides the window and reopening the bundle brings it back.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V5knB3QJJ11XUBAYFZv8yd

huacnlee and others added 2 commits September 14, 2026 23:03
Cmd+W now closes the window through the host, and a Dock click on the
windowless process asks for it back. macOS no longer overrides the Dock
image with the bare logo; a development run reads the plated icon out of
the ICNS itself, and the plate now sits on Apple's 824pt grid so it
matches its neighbours. The window frame is one device pixel in the
palette's border colour, the corners resize the window with a diagonal
cursor, and the default size is 1024x768.

Outside Omarchy the light palette is Flexoki Light, as on the website
and in gpui-omarchy, menus sit on the window background, and Settings
gains a System / Light / Dark theme row that only the standalone host
shows. The website leads with the Omarchy plugin and shows the
standalone install behind macOS and Linux tabs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V5knB3QJJ11XUBAYFZv8yd
Qt quits on its own once the last window is hidden, which made Cmd+W
behave as Cmd+Q. The host now owns the process lifetime, and on macOS
it declares that the Dock can reopen a shut window, so hiding no longer
falls back to quitting when notifications are unavailable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V5knB3QJJ11XUBAYFZv8yd
@huacnlee
huacnlee enabled auto-merge (squash) September 14, 2026 15:06
@huacnlee
huacnlee merged commit 5930af0 into main Sep 14, 2026
12 checks passed
@huacnlee
huacnlee deleted the standalone-desktop-polish branch September 14, 2026 15:08
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.

1 participant