Skip to content

fix(desktop): a macOS icon that fills the app-icon shape - #23

Merged
Kkkermit merged 1 commit into
mainfrom
feature/macos-icon
Dec 3, 2026
Merged

Kkkermit merged 1 commit into
mainfrom
feature/macos-icon

Conversation

@Kkkermit

@Kkkermit Kkkermit commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What and why

On macOS 26, the Statsify icon showed up small, on a plain grey tile. macOS 26 does that to any app icon with transparent edges, and ours was the round logo with transparent corners.

macOS now gets its own icon. It's a full, opaque square: the logo on a dark green gradient with a soft glow. macOS rounds it into its normal app-icon shape. Windows and Linux keep the round logo, and only src-tauri/icons/icon.icns changes.

  • src-tauri/icons/macos.svg is the source of the new icon.
  • docs/DEVELOPMENT.md explains how to regenerate it with npx tauri icon, copying only icon.icns out of the set.
  • AGENTS.md lists the icons folder.

The file also shrinks from 512 KB to 114 KB.

Things to know:

  • The tile rule isn't documented by Apple. That any transparency at the edge triggers the grey tile comes from developer reports. Every size in the new .icns (16 to 1024 px, plus the legacy masks) is opaque right to the edge.
  • macOS 15 and earlier don't round icons, so they show this one as a square with square corners.
  • If macOS 26 still shows the tile, the next step would be an asset catalog (Assets.car) compiled with Apple's tools on the macOS runner.

How it was tested

  • Read every entry of the new .icns: each PNG is fully opaque, and the 16 px and 32 px masks are all 255.
  • Rendered mock-ups of the old and new icons in the macOS app-icon shape, on light and dark, at Dock and Finder sizes.
  • Not yet checked on a Mac. The Desktop app run on this pull request builds the macOS .dmg to try. macOS caches icons, so if the old one still shows after installing, run killall Dock.

Checklist

  • The branch is named feature/<name> and the commits follow the commit style.
  • npm run check passes (typecheck, lint, unit tests, build). No code changed.
  • npm run e2e passes, or the change can't affect the UI.
  • Rust changed: no Rust code changed.
  • New behaviour has tests: not applicable (an image).
  • UI changes work at desktop, tablet and phone sizes, by keyboard, with reduced motion and in every theme. Not applicable.
  • Docs are updated (README, docs/, AGENTS.md) where behaviour, commands or architecture changed.
  • No secrets, tokens, personal data or real listening history in code, tests, screenshots or logs.

Generated by Claude Code

macOS 26 puts an app icon with transparent edges, like the round logo, on
a grey tile, shrunk. The macOS icon (icon.icns) is now a full, opaque square
made from src-tauri/icons/macos.svg: the logo on a dark green gradient,
which macOS rounds into its own app-icon shape. Windows and Linux keep the
round logo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@github-actions github-actions Bot added desktop The desktop app (src-tauri) bug Something isn't working labels Dec 3, 2026
@Kkkermit
Kkkermit merged commit 0aa04b6 into main Dec 3, 2026
17 checks passed
@Kkkermit
Kkkermit deleted the feature/macos-icon branch December 3, 2026 14:02
@Kkkermit Kkkermit mentioned this pull request Dec 3, 2026
8 tasks done
Kkkermit added a commit that referenced this pull request Dec 3, 2026
## What and why

This sets the version to 1.2.1 in all six places (`npm run version:set
-- 1.2.1`). It's a patch release that ships the fixes merged since
1.2.0:

- **#23** The macOS icon now fills the app-icon shape instead of sitting
small on a grey tile in macOS 26. The icon is built into the installer,
so it only reaches people through a release.
- **#22** The app's links point at the repository's new name, Statsify.

Merging this starts **Release on main**. It finds no `v1.2.1` tag, so it
runs the Release workflow:

- CI and the desktop builds run;
- the release is published with the generated notes and tagged on the
merged commit;
- the Website workflow then rebuilds
https://kkkermit.github.io/Statsify/, so 1.2.1 shows up there by itself.

The website (#24) is published separately, so it isn't part of this
release.

Before merging, it's worth trying the macOS `.dmg` that the **Desktop
app** workflow built on `main` (the `statsify-macOS` artifact) on macOS
26, to confirm the new icon.

## How it was tested

- `npm run version:set -- --check 1.2.1` reports 1.2.1 in every place.
- `npm run check` passes: typecheck, lint, 568 unit tests and the build.

## Checklist

- [x] The branch is named `feature/<name>` and the commits follow the
[commit
style](https://github.com/Kkkermit/Statsify/blob/main/CONTRIBUTING.md#commits).
- [x] `npm run check` passes (typecheck, lint, unit tests, build).
- [x] `npm run e2e` passes, or the change can't affect the UI. It's the
version number only.
- [x] Rust changed: only the version in `Cargo.toml` and `Cargo.lock`.
CI runs the Rust checks.
- [x] New behaviour has tests: not applicable.
- [x] UI changes work at desktop, tablet and phone sizes, by keyboard,
with reduced motion and in every theme: not applicable.
- [x] Docs are updated (README, `docs/`, `AGENTS.md`) where behaviour,
commands or architecture changed: nothing changed.
- [x] No secrets, tokens, personal data or real listening history in
code, tests, screenshots or logs.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working desktop The desktop app (src-tauri)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant