On Windows 10 magpie's icon looked a size smaller than its neighbours
in the taskbar, the tray overflow and Start's "Recently added"
(dzxx0496 on Discord, #general). Every Windows icon was the Mac's tile:
build/windows/icon-*.png (75cb19264, the exe's icon group #3, which
the window, the taskbar and the Start shortcut's IconLocation exe,0
all use) and internal/gui/icon.png (the tray) were build/icon/gen.go's
app(), on macOS's grid, the tile 80% of the canvas with 10% clear on
each side. Windows draws an app to the edges of its square.
- gen.go: app() and the new win() share tile(). win() is the same
white tile, shading and bird (.8 of the tile), a 32nd of the side
clear from 32px up (1px at 32 and 48, 8px at 256) so the rounded
corners' soft edge stays inside, and to the edge under 32px, where
that pixel would only blur it; corner radius .2 of the side (.225 on
the Mac). No new colour.
- build/windows: icon-16 to icon-256 drawn by win(), plus 20, 24 and
40 px, which Windows asks for at 125% to 250%; winres.json lists
them.
- The tray takes internal/gui/icon-windows.ico (16, 20, 24, 32, 40,
48, 64); Wails picks the SM_CXSMICON entry, where the 64px PNG was
scaled down by the system. icon.png, only the tray's, is gone.
- Makefile's icons target draws all of these.
Not changed: macOS (app() is byte for byte the same at 64, 256 and
1024: cmp against the committed icon-256.png and icon-1024.png; the
.icns, Assets.car and tray.png untouched). Linux: its tray is the
glyph with no tile, and its desktop icon (icon-256.png) keeps the
margin GNOME's and the hicolor theme's app icons have too.
What was run:
- mote: go test ./internal/gui: TestWindowsIconsFillTheirSquare (new),
TestTrayIconPerOS and TestTrayIconSize ok. Red, each filed and none
about icons: TestSettingsSaveKeepsWhatItDoesNotSend (#4514, red 3 of
3 at a fresh origin/main 733fac48f), TestMainWindowCorners/macOS_26_SDK
(#3949, macOS 27) and TestColdTurnsTaken once in the package run,
ok when run again (#4510). go vet ./..., GOOS=linux go vet -tags
nogui ./..., GOOS=windows go vet ./..., go build and GOOS=windows
go build: ok. gofmt -l prints nothing.
- Broken by hand: the old PNGs, winres.json and the old 64px picture
as the tray's .ico: TestWindowsIconsFillTheirSquare red, "tile
(25,25)-(231,231) in (0,0)-(256,256), want at least 15/16 of the
side, centred" and the same for each size, "icon-windows.ico has no
16px picture".
- make release-windows on mote at origin/main and at this change, both
exes on the Windows 11 box (xiaomi-gpu). Its console was locked at
the PIN screen, so no desktop screenshot: instead Windows itself
drew each exe and a .lnk to it through IShellItemImageFactory (what
Explorer, the taskbar and Start use) at 16/24/32/48/256, beside
Docker Desktop, Claude, Explorer, Edge and Notepad, and the tray
icon through CreateIconFromResourceEx at 16 to 40 as Wails makes it.
Before: the tile 80% of the square, the tray blurred. After: the
tile fills it as Docker's, Claude's and Edge's do; the tray is
crisp at each size.
Not run: go test -tags nogui ./... (the change is internal/gui's
embeds, which nogui leaves out, and build/).
Not tried: Windows 10 itself, and the real taskbar, tray and Start
with the desktop unlocked. Windows keeps an exe's icon in its icon
cache by path, so a user may see the old one until the cache renews.
The product, module path (github.com/yetone/magpie), binaries, env vars
(MAGPIE_ADDR, MAGPIE_DEV_UI, MAGPIE_THEME, MAGPIE_DEBUG), config and cache
folders (~/.config/magpie, ~/.cache/magpie), bundle id (com.yetone.magpie),
gateway provider id and token, and every UI string now say magpie.
On first run magpie copies ~/.config/dial and ~/.cache/dial to the new
folders when they don't exist yet (copy, not move, so a still-running dial
keeps working; the old folders can be deleted by hand later).
The logo is a small round magpie in profile: one path for the header and
the tray, and the app tile adds the white belly and the blue-green tail.
The header mark is drawn in ink rather than the accent colour, which
fought the text in light mode.
The gateway glyph is gone. The mark is now a kingfisher in profile, facing
the wordmark: big head, dagger beak, short tail, one line for the wing, the
eye a hole. The header draws it in ink rather than the accent, which fought
the text in light mode. The icon generator rasterizes the same SVG path
(flattened cubics, even-odd fill), and the app tile is kingfisher blue.
Three inputs from the left, two of them curving in, meet at a hollow node
and one line leaves to the right: many models, one endpoint. Replaces the
detent ring, which read as a power button.
A control ring open to the upper right with a detached index reaching
through the opening: the instant a knob clicks into position. One glyph
on a 44-unit grid drives the window header SVG, the menu bar template
icon and the app icon; the generator draws it with round-capped strokes
so the three stay identical.
Wails v3 tray panel and window, TUI and CLI. Switches model, effort and
provider for Claude Code, Codex, Gemini CLI, OpenCode, Pi, Goose, Cursor,
Copilot CLI and Crush with format-preserving config edits. Providers page
and registry, stored keys, live vendor model lists, profiles.
Co-Authored-By: Claude <noreply@anthropic.com>