Repository navigation
fix: app icon follows the macOS margin and shadow (#198) - #485
Merged
Merged
Conversation
The shipped icon was drawn edge to edge on the 1024 canvas, so it rendered larger than neighbouring Dock icons. Same art, same shapes and colors, now at the macOS template size (824 px centered on 1024, transparent margin, soft drop shadow). - Regenerate every AppIcon.appiconset size (16 to 512, @1x and @2x) from the 1024 version, halving step by step with Core Graphics high-quality interpolation. File names and Contents.json unchanged. - Update img/icon_512@2x.png (README image), which was the same edge-to-edge file. - At 16 and 32 px the shadow does not muddy the glyph (checked at 8x on light and dark), so no lighter small-size shadow.
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.
Fixes #198. Same icon, light HIG polish only: no change to shapes, colors or style.
What changed
The icon was drawn edge to edge on the 1024 canvas. Apple's macOS icon template uses about 824 px of art centered on 1024, with a transparent margin and a soft drop shadow, so ours rendered visibly larger than neighbouring Dock icons.
AppIcon.appiconsetPNGs (16, 32, 128, 256, 512 at @1x and @2x) are regenerated from the 1024 version with the margin and shadow. Resized step by step (1024, 512, 256, 128, 64, 32, 16) with Core Graphics high-quality interpolation. File names andContents.jsonare unchanged.img/icon_512@2x.png(the README image) was the same edge-to-edge file and gets the same update.AppIconasset, so it follows automatically.ic_logo.imagesetis a different, unused image that already has a margin, so it is untouched.Comparison image (for review)
current-polish-compare.png, 2400x1450. It has old vs new at 1024 (shown at 50%), 128, 32 and 16 (with 4x and 8x magnified views of 32 and 16), each on a light and a dark background. Below that is a mock Dock row: Safari, old Hidden Bar, Notes, new Hidden Bar, Calendar at the same icon size. The new icon matches the stock icons in size; the old one is visibly larger. The "new" column is read from the compiledAppIconof the built Debug-Direct app, not from the source PNGs.Local path (not committed):
/private/tmp/claude-501/-Users-tieubao-workspace-tieubao-ops-toolkit/31d97da0-d6cd-4d87-b3f7-49e61140184d/scratchpad/han-review/icon/current-polish-compare.pngVerification
Hidden Bar(Debug-Direct) andHidden Bar App Storeschemes: both succeed, and the built bundle carries all ten icon reps (16 to 1024).bash scripts/test.sh: Hidden Bar 285 passed, 0 failed; Hidden Bar App Store 210 passed, 0 failed.Not changed: this is still the flat PNG set. A layered
.iconfrom Icon Composer (macOS 26 look) is a separate follow-up.