Preset window icons + golden Citrine accent #43
Loading…
Reference in a new issue
No description provided.
Delete branch "preset-app-icons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Picking an accent preset now swaps the running window's icon to a matching gem, and the Amber preset is replaced by a golden Citrine.
How
generate-icons.sh— amake_preset_iconhelper recolors the gem (shape from the transparent source's alpha, painted the preset color, over a white rounded tile) and emitsresources/icons/presets/<id>.pngfor the six presets. One 256px size; the OS scales.main.rs—set_app_iconcommand maps a preset id to its embedded PNG (include_bytes!), decodes to RGBA via theimagecrate, and callswindow.set_icon. Self-contained; no new capability (done from Rust).useApplyAccentalso callssetAppIcon, so the window icon swaps in lockstep with the CSS accent on boot and on every change.#956300) with a lightened gem (#9c7a0f) so it reads as true gold.Affects the live window only (titlebar/taskbar, macOS dock); the installed launcher icon is baked at build time and unchanged.
Testing
tsc, Biome, full-repo lint, andcargo checkpass. Generated icons inspected visually. Verified viamake dev: picking a preset swaps the titlebar/taskbar icon and the choice persists; Citrine reads clearly golden and distinct from Garnet.