Skip to content

fix: app icon follows the macOS margin and shadow (#198) - #485

Merged
tieubao merged 2 commits into
developfrom
fix/app-icon-hig-margin
Nov 15, 2026
Merged

tieubao merged 2 commits into
developfrom
fix/app-icon-hig-margin

Conversation

@tieubao

@tieubao tieubao commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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.

  • All ten AppIcon.appiconset PNGs (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 and Contents.json are unchanged.
  • img/icon_512@2x.png (the README image) was the same edge-to-edge file and gets the same update.
  • The About pane reads the AppIcon asset, so it follows automatically. ic_logo.imageset is a different, unused image that already has a margin, so it is untouched.
  • 16 and 32 px: the shadow stays outside the glyph and does not muddy it (checked at 8x on light and dark), so there is no lighter small-size shadow.

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 compiled AppIcon of 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.png

Verification

  • Built the Hidden Bar (Debug-Direct) and Hidden Bar App Store schemes: 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 .icon from Icon Composer (macOS 26 look) is a separate follow-up.

tieubao and others added 2 commits November 16, 2026 00:06
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.
@tieubao
tieubao merged commit 0044a70 into develop Nov 15, 2026
3 checks passed
@tieubao
tieubao deleted the fix/app-icon-hig-margin branch November 15, 2026 18:17
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.

App icon doesn't match HIG

1 participant