Skip to content

Draw the arch bridge in the menu bar and notification area - #88

Merged
JetSquirrel merged 1 commit into
mainfrom
feat/tray-bridge-icon
Nov 3, 2026
Merged

JetSquirrel merged 1 commit into
mainfrom
feat/tray-bridge-icon

Conversation

@JetSquirrel

Copy link
Copy Markdown
Owner

Replaces the cloud in the menu bar and notification area with the new app icon's arch bridge, so it matches the icon from #74. There is no linked issue.

What changed

  • Normal: a solid arch bridge with three dots above it, in one colour.
  • An alert is open: an exclamation mark replaces the dots. The old icon cut the mark out of the cloud, but there's no room to do that here.
  • Same behaviour otherwise: still black template on macOS and #8a8a8a grey on Windows, still drawn in code at 44 pixels. Clicks, the title, the tooltip and the alert logic are unchanged.

It isn't a trace of assets/icon.svg. A first draft with a thin deck and arch looked like a bench at 16 pixels, so this version has a thick body with the arch cut through it. The dots are in roughly the app icon's positions.

The shape is now a pure function, icon_covers, so tests can read it without creating a platform icon.

Testing

Run locally on Windows:

  • cargo test: all passing, with four new tests covering the arch opening, what an alert changes, the gaps in the mark and that nothing touches the icon's edge.
  • cargo clippy --all-targets -- -D warnings and cargo fmt --check: clean.
  • cargo +nightly-2026-07-28 check --lib --target wasm32-unknown-unknown: passes. The tray isn't compiled for wasm.

I also dumped the pixels icon_rgba produces and viewed them at 16 to 44 pixels on dark and light backgrounds. Bridge, dots and mark are all distinct at 16.

Not seen in a real taskbar or menu bar, and not built on macOS. Please check:

  • Windows: the icon is legible in the notification area on dark and light taskbars, at 100% and a higher display scale.
  • Windows: it switches to the exclamation mark when an alert opens, and back when the last one closes.
  • macOS: it tints correctly as a template in light and dark menu bars, including the alert state.
  • The dots are recognisable as the app icon's. If the shape needs adjusting, the coordinates are all in icon_covers.

🤖 Generated with Claude Code

The tray still drew the old cloud, because it is drawn in code and #74 only
replaced the image files. It is now a solid bridge with three dots, redrawn
because the app icon's slender artwork would not read at this size. An
exclamation mark replaces the dots while an alert is open, since the bridge
has no room for the hole the cloud used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JetSquirrel
JetSquirrel merged commit aace0a2 into main Nov 3, 2026
4 checks passed
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