Skip to content

Perch gets its own icon, a small bird on a branch, everywhere it shows itself - #25

Merged
pitis merged 2 commits into
mainfrom
feat/app-icon
Nov 8, 2026
Merged

pitis merged 2 commits into
mainfrom
feat/app-icon

Conversation

@pitis

@pitis pitis commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Closes #14.

What changed

  • Sources/Perch/Views/AppMark.swift draws Perch's bird: one continuous outline with a tapered tail and branch, shaded plum on the orange square. AppBadge is the bird on the square at any size, and the bird is drawn larger in small badges so it stays readable at 22 pt.
  • It replaces Apple's bird.fill everywhere: the app icon, the menu bar (a template silhouette, so macOS tints it), the panel header and the reminder card. Apple's license doesn't allow SF Symbols in an app icon or logo.
  • scripts/AppIcon.icns comes from make icon (scripts/icon.sh): --snapshot renders the art at exactly 1024 px with ImageRenderer, then sips and iconutil build the ten sizes. build.sh copies it in and Info.plist sets CFBundleIconFile.
  • --snapshot also writes app-icon.png and menubar.png. Snapshot.run is now @MainActor, which ImageRenderer needs; its only caller is the app delegate.
  • README: the icon at the top, and the screenshots re-rendered with the new badge.
  • AGENTS.md: make icon, and a rule that the bird is never an SF Symbol. product.md: the app icon moves to Done.

How it was tested

  • The design went through three rounds of rendered previews at 16–1024 px, on light and dark, before this was built.
  • Installed with build.sh --install and seen in the real app: the icon in Finder and the new bird in the menu bar.
  • iconutil -c iconset on the result gives all ten sizes, and the 1024 px one matches the approved render.
  • make check: 41 tests pass.

The bird is drawn in AppMark.swift and used everywhere Perch shows itself: the app icon
(scripts/AppIcon.icns, rebuilt with make icon), the menu bar, the panel header and the
reminder card. Apple's bird symbol was there before, and its license doesn't allow it as an
app icon or logo. The README shows the icon and its screenshots are re-rendered.
@pitis

pitis commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Before / after

Rendered with make shots (sample data). Before is main, after is this branch.

Before After
Before: the panel header with Apple's bird After: the panel header with Perch's bird
Before: the reminder card with Apple's bird After: the reminder card with Perch's bird
No app icon: Finder showed the generic one After: the app icon
Apple's bird.fill in the menu bar After: the menu bar silhouette, tinted white as on a dark menu bar

@pitis

pitis commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Review: /pr-review-toolkit:review-pr (code reviewer) and /ponytail:ponytail-review

Critical / Important: none. A clean build has no warnings, swift test passes 41 tests, the committed AppIcon.icns and docs/images match fresh renders byte for byte, and no bird.fill remains in Sources. Path.union, NSBezierPath(cgPath:) and ImageRenderer are all available on macOS 14, and Snapshot.run's only caller is the app delegate, which already runs on the main actor.

Suggestions, fixed in a920a7b:

  • make icon didn't refresh docs/images/icon.png, so the README would go stale after the next change to the bird. It does now, and AGENTS.md names both files.
  • When --snapshot didn't write the icon art, make icon failed with "isn't 1024 pixels wide". It now says the render is missing.
  • Two doc comments in AppMark.swift: the menu bar was missing from the list of users, and the menu bar image is the bird and branch, not "the bird alone".

Declined:

  • Padding in the menu bar slot (the image is about 22 pt wide in a square item). It was checked in the real menu bar and looks right.
  • Drawing the 16 and 32 px icon sizes separately with a bigger bird. That's a design call, and the shrunk sizes were approved from previews.

Ponytail: nothing to cut. menuBarImage is computed once at launch. Building the bird's path takes about 7 µs. A missing .icns or a failed render stops build.sh and make icon instead of shipping a broken bundle.

After merge: tick #14 on the #1 checklist.

@pitis
pitis merged commit 4c27262 into main Nov 8, 2026
@pitis
pitis deleted the feat/app-icon branch November 8, 2026 15:18
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.

Add an app icon

1 participant