Skip to content

feat(desktop): add selectable Machined Silver metallic app icon variant - #287

Merged
kombuchapunk merged 1 commit into
mainfrom
feat/silver-app-icon
Dec 5, 2026
Merged

kombuchapunk merged 1 commit into
mainfrom
feat/silver-app-icon

Conversation

@kombuchapunk

Copy link
Copy Markdown
Collaborator

Summary

Adds an optional Machined Silver metallic app icon variant (two-piece CNC brushed silver outer chassis, inset brushed platinum plate, chamfered groove, dark titanium mark, and glossy #FF5A1F enamel dot) selectable from Settings › General › Display → App icon:

  • Assets:
    • apps/desktop/src-tauri/icons/src/app-icon-silver.svg (canonical macOS squircle vector source)
    • apps/desktop/src-tauri/icons/icon-silver.png (512×512 transparent RGBA PNG embedded in the desktop shell)
  • Desktop shell (Rust / Tauri):
    • Persists appIcon: "default" | "silver" in <home>/settings.json (settings.rs) with backwards-compatible default "default".
    • macOS (macos/icon.rs): applies instantly to the Dock & ⌘⇥ app switcher via NSApplication.setApplicationIconImage + dockTile().display(), restores the bundle .icns icon when switching back to Dark, re-applies on launch (lib.rs), and preserves the chosen icon when toggling out of Menu bar only (commands.rs).
    • Windows / Linux (window.rs): updates open window/taskbar icons via WebviewWindow::set_icon.
    • Advertises "appIcon" in window::features() (ShellContract).
  • Settings UI & About icon:
    • Adds App icon (Dark | Silver) tiles in Settings › General › Display (desktop shell only; zero native code loaded in browsers) using the existing native TileGroup / Tile radio grammar.
    • Updates AppIcon (web/src/components/AppIcon.tsx) with the variant="silver" SVG so Settings › About also reflects the chosen icon.

Verification

  • npm run typecheck, npm run build, npx biome check
  • Unit tests (web/src/lib/breakpoints.test.ts + web/src/native/, 130/130 passed)
  • Playwright E2E (test/e2e/native-shell.spec.ts: App icon switches between Dark and Machined Silver and updates About + in a browser nothing native loads, 2/2 passed)
  • Visually inspected icon-silver.png and Settings › General › Display tile rendering.

Signed-off-by: kombuchapunk <35040017+kombuchapunk@users.noreply.github.com>
@kombuchapunk
kombuchapunk merged commit 6602f12 into main Dec 5, 2026
14 checks passed
@kombuchapunk
kombuchapunk deleted the feat/silver-app-icon branch December 5, 2026 02:34
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