Repository navigation
feat(desktop): add selectable Machined Silver metallic app icon variant - #287
Merged
Merged
Conversation
Signed-off-by: kombuchapunk <35040017+kombuchapunk@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
#FF5A1Fenamel dot) selectable from Settings › General › Display → App icon:apps/desktop/src-tauri/icons/src/app-icon-silver.svg(canonical macOS squircle vector source)apps/desktop/src-tauri/icons/icon-silver.png(512×512transparent RGBA PNG embedded in the desktop shell)appIcon: "default" | "silver"in<home>/settings.json(settings.rs) with backwards-compatible default"default".macos/icon.rs): applies instantly to the Dock & ⌘⇥ app switcher viaNSApplication.setApplicationIconImage+dockTile().display(), restores the bundle.icnsicon 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).window.rs): updates open window/taskbar icons viaWebviewWindow::set_icon."appIcon"inwindow::features()(ShellContract).Dark|Silver) tiles in Settings › General › Display (desktop shell only; zero native code loaded in browsers) using the existing nativeTileGroup/Tileradio grammar.AppIcon(web/src/components/AppIcon.tsx) with thevariant="silver"SVG so Settings › About also reflects the chosen icon.Verification
npm run typecheck,npm run build,npx biome checkweb/src/lib/breakpoints.test.ts+web/src/native/, 130/130 passed)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)icon-silver.pngand Settings › General › Display tile rendering.