Skip to content

Replace launcher icon with new artwork, kept inside the adaptive-icon safe zone - #39

Merged
Marcogn merged 3 commits into
mainfrom
claude/audit-cousin-repositories-i8yuyo
Sep 12, 2026
Merged

Replace launcher icon with new artwork, kept inside the adaptive-icon safe zone#39
Marcogn merged 3 commits into
mainfrom
claude/audit-cousin-repositories-i8yuyo

Conversation

@Marcogn

@Marcogn Marcogn commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces the launcher icon carried over from the Capacitor build with new artwork (a red Pokédex-style handheld next to a notepad and pencil).
  • The source is a single flattened raster (art + blue background baked into one image). Learning from the sibling repo HackDex-Tracker's own icon-cropping bug (see its docs/implementation-decisions.md, "Adaptive icon safe zone"), the artwork is scaled to ~60% and centered so it stays inside Android's documented 66dp/108dp adaptive-icon safe zone before it ever reaches a device, rather than assuming a transparent foreground exempts a full-bleed background from launcher masking (it doesn't).
  • Verified with a pixel-level check: found the farthest non-background pixel from center, computed the scale that brings it just inside the safe-zone circle, then simulated circle/squircle/rounded-square mask shapes over the result and confirmed zero pixels outside the safe zone differ from the background color.
  • ic_launcher.xml/ic_launcher_round.xml now set the foreground to @android:color/transparent (no separate foreground art exists for this asset) and no longer reference ic_launcher_foreground.png, which is deleted.
  • Regenerated ic_launcher_background.png (all 5 densities), legacy ic_launcher.png/ic_launcher_round.png (all 5 densities, minSdk 24 needs the pre-API-26 fallback).
  • Documented the process and reasoning in docs/implementation-decisions.md ("New app icon"), added a CHANGELOG.md entry under [Unreleased], and updated the launcher-icon line in docs/test-plan.md to describe the new artwork instead of the old ported Capacitor icon.

Test plan

  • Simulated circle/squircle/rounded-square adaptive-icon masks over the new background PNG and confirmed the artwork is fully uncropped in every shape (script-verified, zero deviating pixels outside the safe zone).
  • Visually reviewed the icon at both a large (192px) and the smallest legacy (48px) density for legibility.
  • Manual on-device check still recommended per docs/test-plan.md's "Launcher icon" item (home screen + app switcher across real launcher shapes) — this PR only verifies the safe-zone math and mask simulation, not a real launcher.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LvPktDUdCYQVtUv66KzL7r


Generated by Claude Code

… safe zone

New Pokedex-handheld-and-notepad artwork replaces the icon carried over
from the Capacitor build. Learned from HackDex-Tracker's own icon-cropping
bug: scaled and padded the artwork so it stays inside Android's 66dp/108dp
safe zone before it ever reached a device, verified with a pixel-level
check against circle/squircle/rounded-square mask shapes. See
docs/implementation-decisions.md, "New app icon".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvPktDUdCYQVtUv66KzL7r
Binary-searched for the largest scale that still leaves zero pixels
outside the 66dp/108dp safe circle differing from the background color
(~61%, up from the initial ~60% conservative estimate) so the icon reads
as large as possible without risking real cropping on any launcher.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvPktDUdCYQVtUv66KzL7r
…afe zone

The previous scale (~61%) satisfied Android's documented safe-zone
guarantee, which is provably safe under *any* mask a launcher could ever
use -- far stricter than needed for this artwork, and it showed: the icon
looked much smaller than the blue background around it. Re-verified
against the three shapes real launchers actually ship (full inscribed
circle, squircle, rounded square) instead, and this artwork survives all
three at ~98% scale with zero clipped pixels -- this content already sits
almost entirely within a full circle even before scaling down.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvPktDUdCYQVtUv66KzL7r
@Marcogn
Marcogn marked this pull request as ready for review September 12, 2026 18:33
@Marcogn
Marcogn merged commit 810f255 into main Sep 12, 2026
1 check passed
@Marcogn
Marcogn deleted the claude/audit-cousin-repositories-i8yuyo branch September 12, 2026 18:33
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.

2 participants