icon: source from Icon Composer export - #1
Merged
Conversation
Adds icon/icon.icon (the editable Icon Composer source) plus its flattened 1024px export, and points tools/mkicon.sh at them instead of the loose Resources/AppIcon.png, which is now dropped. The new export already carries Apple's rounded-square mask in its alpha channel, so the old overscale-to-hide-baked-corners hack no longer applies -- it would crop 6% of the art. mkicon.sh now just rescales the export onto the 824x824 macOS grid without re-clipping, which also preserves the continuous "squircle" corners that a CGPath rounded rect would shave. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Adds
icon/— the Icon Composer source (icon.icon) plus its flattened 1024px export — and pointstools/mkicon.shat it instead of the looseResources/AppIcon.png, which is now dropped (nothing else referenced it).Why the compositing changed
The old
Resources/AppIcon.pngwas a fully opaque square with its rounded corners baked into black pixels, somkicon.shoverscaled the art by 1.06 to push those corners outside the clip path.The new export doesn't need that — Icon Composer writes Apple's rounded-square mask into the alpha channel (corners are genuinely transparent, 6% of the canvas). Keeping the overscale would crop 6% of real art. And re-clipping with
CGPath(roundedRect:)would shave the continuous "squircle" curve, since CGPath corners are plain circular arcs.So the Swift step now just rescales the export onto the 824×824 macOS grid centred on a 1024×1024 transparent canvas. No clip, no overscale.
Verified
Resources/AppIcon.icns; all ten iconset sizes present.Also:
mkicon.shnow prefers aicon-macOS-Default-*export if one is ever added, and errors with a pointer to Export All if the folder has no 1024px PNG.🤖 Generated with Claude Code