Skip to content

Add standalone Omamail desktop app - #206

Merged
huacnlee merged 101 commits into
mainfrom
standlone
Sep 14, 2026
Merged

huacnlee merged 101 commits into
mainfrom
standlone

Conversation

@huacnlee

@huacnlee huacnlee commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

The Omarchy plugin had no standalone desktop host, so users outside Omarchy could not run the same mail UI or install native packages. This adds a Qt 6 standalone app around the shared QML UI, persistent native settings and secrets, desktop notifications, and production packages for macOS arm64, Linux x86_64 (tar.gz with curl installer), and Windows x64, while keeping tray, AI, and mailto: out of this version.

The standalone UI follows the active Omarchy colors.toml and shell.toml, reloads theme changes, uses the platform system font for text and a bundled Nerd Font for icons, uses themed scrollbars, and replaces the native title bar with a draggable app header. Gmail OAuth client credentials persist in a private 0600 file instead of world-readable plugin settings. Outside Omarchy, the app follows system appearance with Tokyo Night dark and a Lupine-derived light palette (#FFFFFF background, #212121 foreground). It remembers window size, provides themed delayed tooltips and controls, and uses matching macOS/Windows icons generated from the complete Omamail SVG. README and website document standalone installation; the macOS installer handles the unsigned bundle after verification. The existing Omarchy plugin remains supported through the same shared UI and pinned backend API contract.

Test plan

  • make test-js
  • bash tests/test_source.sh
  • python3 app/tests/test_qml_inventory.py
  • python3 app/tests/test_package.py
  • python3 app/tests/test_release_workflow.py
  • python3 tests/test_backend_release.py
  • cmake --build app/build --parallel
  • ctest --test-dir app/build --output-on-failure
  • standalone host QML contract
  • make test-qml (883 passed, 0 failed, 14 skipped)
  • make app-run, visually verified frameless window, Nerd Font glyphs, Omarchy palette, and themed scrollbars on macOS

Security verdict: NOT VERIFIED for final cross-platform release readiness while native CI is pending. Focused credential, installer, and resource boundary checks have passed; the current head must pass all native CI jobs before release.

huacnlee and others added 24 commits September 14, 2026 17:22
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
The Windows standalone app is not shipping yet. Comment out the Windows
app jobs in CI and release, drop windows-latest from the standalone
backend matrix, and remove the Windows archive from the published asset
set so publish-and-pin no longer waits on it. The contract tests are
adjusted to match; every disabled block is marked for restoration.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FXvNmrZUFg96AJUydhHZG5
The mail.act contract test still wrote accounts.json to the XDG layout,
but macOS now reads Library/Application Support regardless of
XDG_CONFIG_HOME, so the backend saw no accounts and the dry-run returned
mail_account_unknown. Darwin's mktemp root is also a /var alias that the
no-symlink storage boundary refuses. Mirror the Gmail fixture: resolve
the temporary directory and place the fixture under the platform root.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FXvNmrZUFg96AJUydhHZG5
Qt 6.8.3's macdeployqt has no -no-codesign option and only signs when an
identity is requested, so the release runner rejected the argument. The
flag only exists on newer Qt, where the default ad-hoc signature is
replaced by the bundle re-seal that follows anyway. Pass no signing
option and have the package test refuse one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FXvNmrZUFg96AJUydhHZG5
@huacnlee
huacnlee merged commit 5e28eb5 into main Sep 14, 2026
12 checks passed
@huacnlee
huacnlee deleted the standlone branch September 14, 2026 13:16
huacnlee added a commit that referenced this pull request Sep 15, 2026
Restores the Windows standalone app jobs that have been commented out in
both workflows since #206, so the Windows zip ships with the next
release.

- `ci.yml`: `standalone-app-windows` builds, packages and exercises the
archive on every pull request; `windows-latest` is back in the
standalone backend matrix.
- `release.yml`: `app-windows-x86_64` is back and `publish-and-pin`
depends on it.
- `publish-backend.sh` / `package-backend.py`:
`omamail-app-windows-x86_64.zip` is part of the release asset set again,
including both download-and-compare passes.
- The release workflow, backend release and publish contract tests
assert all of the above.

Note: these jobs have never run on this repository's CI before — this PR
is their first run, so any failure below is new information rather than
a regression.

Install instructions and the GitHub Pages installer URLs follow in a
separate PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
huacnlee pushed a commit that referenced this pull request Sep 17, 2026
Calendar settings rendered five theme-color choices and the
corresponding saved-calendar indicators as gray. `CalendarPalette` has
required its caller to supply the host palette path since #206, but the
settings instance added by #183 omitted that binding. Pass
`service.calendarPalettePath` just as the other calendar views already
do; hosts without a palette retain the existing semantic fallbacks.

This is a separate fix based directly on upstream `main` at
`13f4f5cd54d7d3d766e80ec0cbcb166a2e1e1c02` (0.10.5). It contains no
earlier feature-branch commits, backend changes, release-pin changes, or
settings migrations.

## Verification

- `make validate` passes on Linux / Qt 6.11: Rust, JavaScript and shell
suites, 934 main QML cases, 6 HTTP cases, 64 sidebar cases, standalone
composition, both lint targets and plugin validation.
- The new composition regression fails against the unchanged palette
binding and passes with this fix. It reads through the host FileView
adapter and checks the actual seven swatch colors, a saved calendar's
blue indicator, live theme updates and the no-palette fallback.
- An isolated on-screen Quickshell harness instantiated the production
settings component and real Omarchy controls with synthetic accounts.
Opening the picker by mouse and choosing blue by keyboard succeeded in
Catppuccin and Catppuccin Latte at both 760×800 and 1180×800 logical
capture sizes. The matched images below were captured at the same
desktop scale (1.6).
- Security review: PASS for this scoped change. The palette path comes
from the existing host service; the change adds no provider requests,
credential access or settings writes. This is not a platform-wide
security audit.

## Visual comparison

Before: accent and red use fallback colors, while the other five choices
and the green/blue/magenta source indicators are gray. After: both the
picker and source indicators use the selected theme palette. Each pair
uses the same view, synthetic account state, size, theme and scale.

<details>
<summary>Catppuccin (dark), compact</summary>

| Before | After |
| --- | --- |
| ![Before: Catppuccin (dark),
compact](https://github.com/user-attachments/assets/3e2e6b0a-ce9e-4dc1-9e39-c21c5ab43a6f)
| ![After: Catppuccin (dark),
compact](https://github.com/user-attachments/assets/b84b62a2-d80c-4c24-b88e-b8d55eaf890d)
|

</details>

<details>
<summary>Catppuccin (dark), wide</summary>

| Before | After |
| --- | --- |
| ![Before: Catppuccin (dark),
wide](https://github.com/user-attachments/assets/624c7d7d-b93f-427c-83db-85e0daa2c015)
| ![After: Catppuccin (dark),
wide](https://github.com/user-attachments/assets/f3c1fe61-c7fc-486a-aefd-52b116af442b)
|

</details>

<details>
<summary>Catppuccin Latte (light), compact</summary>

| Before | After |
| --- | --- |
| ![Before: Catppuccin Latte (light),
compact](https://github.com/user-attachments/assets/912fc27a-04a1-49e9-a363-80eb4e308a1d)
| ![After: Catppuccin Latte (light),
compact](https://github.com/user-attachments/assets/ef6e9b88-ee97-4d38-bb42-285c373078ee)
|

</details>

<details>
<summary>Catppuccin Latte (light), wide</summary>

| Before | After |
| --- | --- |
| ![Before: Catppuccin Latte (light),
wide](https://github.com/user-attachments/assets/20367d33-3fc4-47e1-a28b-8be01a91aef2)
| ![After: Catppuccin Latte (light),
wide](https://github.com/user-attachments/assets/131db4b1-ead3-49e2-ba96-5842ed794a59)
|

</details>

## Release Notes

- Fix gray theme-color choices and calendar color indicators in calendar
settings when an Omarchy theme palette is available.

Co-authored-by: Christian Dandachi <dandiccf@gmail.com>
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