Skip to content

feat(desktop): replace the app icon with the ink-blue crescent and star - #292

Merged
GoDiao merged 4 commits into
mainfrom
feat/app-icon-refresh-debb40
Nov 20, 2026
Merged

GoDiao merged 4 commits into
mainfrom
feat/app-icon-refresh-debb40

Conversation

@GoDiao

@GoDiao GoDiao commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Master SVGs and one export command. The icon now comes from master SVGs in desktop/electron/build/: app-icon.svg (the finished 1024 icon on the macOS grid: 824 tile, 185 corner radius, gradient, rim highlight, star glow, shadows), app-icon-small.svg (the bolder mark for 32 px and below, with the same tile gradient, rim highlight and star glow but no shadows) and tray-icon.svg (single-color, for the macOS menu bar). cd desktop && bun run build:icons (desktop/scripts/generate-icons.ts) regenerates every bitmap from them, and app-icon-tile.svg (the finished icon cropped to its tile, without the tile shadow, for the in-app logo at 40 px and up), with the existing @resvg/resvg-js dev dependency, so a later refinement only swaps the masters.
  • All app icons replaced. icon.icns (16–512 plus @2x; 16 and 32 pt use the small mark on whole-pixel tiles, packed with macOS iconutil), icon.ico (16, 24, 32, 48, 64, 128, 256; the small mark up to 32, the finished icon cropped to its tile from 48) and app-icon.png in electron/build and public.
  • Tray. macOS now uses a template image (trayTemplate.png with @2x), so it follows the light or dark menu bar; Windows and Linux use the colored small mark (tray.png with @2x). installTray no longer resizes the image, which dropped the @2x representation, so @2x now takes effect. electron-builder.json copies all tray*.png files.
  • DreamCoderIcon renders an <img>: app-icon-small.svg below 40 px, app-icon-tile.svg from 40 px. Its colors are the icon's own, not the theme's --primary.
  • Removed desktop/electron/build/app-icon-macos.svg (a wrapper around the PNG) and desktop/public/app-icon.svg (an unreferenced copy of the old artwork).
  • Design log (docs/features/ui-refresh/design-log.zh.md) and CHANGELOG updated.

Why

The old terracotta icon was immature and its colors read too close to Claude's. The new one keeps the crescent prompt and star but recomposes them on an ink-blue tile. The interface's primary color is unchanged; that will be handled separately.

How it was tested

  • cd desktop && bun run lint and bun run test -- --run pass (238 files, 3137 passed, 4 skipped). New tests cover the size rule in DreamCoderIcon, the ICO directory layout, the whole-pixel macOS grid tile and the shadow-free Windows crop.
  • icon.icns was unpacked with iconutil -c iconset: all ten sizes are present at the right pixel sizes, and the 16 and 32 tiles have no half-pixel edges. The icon.ico header was parsed: seven 32-bit PNG entries.
  • Every exported image was checked by eye, including the template image on light and dark backgrounds and the in-app logo in light and dark themes.
  • Not yet checked: the real Dock and menu bar in the Dev App, and anything on Windows.

The small icon's star had a thick rounded outline. It now has pointed
tips like the large icon, is 10% smaller and sits further right, away
from the prompt's tip.
…glow

The in-app icons were flat. The small master now has the tile gradient,
the rim highlight, the star glow and the glyph gradients. The in-app
icon from 40px up is app-icon-tile.svg, which build:icons crops from the
finished master, so the hand-drawn flat master is removed. The glow, the
bloom and the rim highlight are dimmer in every icon.
@GoDiao
GoDiao merged commit 83e2580 into main Nov 20, 2026
8 checks passed
@GoDiao
GoDiao deleted the feat/app-icon-refresh-debb40 branch November 20, 2026 13:25
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