Skip to content

fix(build): ship multi-size Windows .ico for crisp small icons#264

Open
whitelonng wants to merge 1 commit into
KunAgent:developfrom
whitelonng:fix/win-multisize-icon
Open

fix(build): ship multi-size Windows .ico for crisp small icons#264
whitelonng wants to merge 1 commit into
KunAgent:developfrom
whitelonng:fix/win-multisize-icon

Conversation

@whitelonng

Copy link
Copy Markdown
Contributor

Summary

  • Fixes [Feature] 图标只有一个大小256*256,会造成桌面图标糊掉 #222: the Windows target used a single 1024px PNG (kun_mac.png), so Windows downscaled it on the fly for the small-icon / tile views in Explorer and on the desktop, leaving the icon blurry.
  • Ship a multi-size build/icon.ico containing 16/24/32/48/64/72/96/128/256 px bitmaps, generated from the same rounded kun_mac.png so each shell size has a crisp native bitmap.
  • win.icon now points at build/icon.ico; macOS/Linux icons are untouched.

Regenerating the .ico

npx --yes png2icons src/asset/img/kun_mac.png build/icon -icowe -bc

Test plan

  • Verified build/icon.ico contains 9 sizes (16→256, 32bpp).
  • Windows build: confirm crisp icons at small/tile sizes in Explorer, desktop, taskbar, and Start menu.

The Windows build pointed at a single 1024px PNG, so Explorer and the
desktop downscaled it for the small/tile views and the icon looked
blurry (KunAgent#222). Ship a multi-size build/icon.ico (16/24/32/48/64/72/96/
128/256) generated from the rounded kun_mac.png so each shell size has
a native bitmap.
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