fix: proper icon sizing in drawables - #318
Conversation
Scaling the artwork into the adaptive-icon safe zone is right -- the leaf reached 34dp from centre against a 33dp safe radius, so launchers clipped it. Two things came along with that change: The '#' veins were not scaled with the geometry. Everything else went through the 512/108 = 4.7407 factor, but the foreground stroke landed on 8 instead of 11.852, leaving the foreground drawing the mark at 1.27dp while the monochrome layer draws the same mark at 1.875dp. The two layers are the same icon to the user -- turning themed icons on should not change the stroke weight. Scaled it faithfully and raised the group scale to 0.85, which still clears the safe circle (28.9dp of 33dp) but does not leave the icon looking undersized next to its neighbours. Reverted the build.gradle.kts hunk. `applicationIdSuffix = ".debug"` is worth having, but .github/scripts/launch-smoke.sh hardcodes `com.markleaf.notes` in its `pm path` poll and its `am start` component, so the suffix turns that job permanently red -- a non-required check that always fails is worse than no check. Tracked separately so it can land with the script fix. (`isDebuggable` is also the debug build type's default.) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Thanks — you're right, and the screenshots understate it: on a Pixel emulator the current icon's leaf is cut flat along the bottom of the mask. I measured both revisions against the adaptive-icon canvas (108dp, with the 66dp guaranteed-safe circle):
I pushed one commit onto your branch rather than sending you back and forth. Two changes: 1. The 2. Reverted the Also dropped the editor-export leftovers — the Verified by building both revisions and installing them side by side on a Pixel emulator (API 36), which is what turned up the vein-weight difference. Merging once CI is green — thanks for catching this. |
|
Merged, and CI is green across the board — including Thank you for this. It's a small diff, but it's the kind of thing that only gets found from outside: the leaf had been running past the safe zone since the day the icon was drawn, so every launcher had been clipping it, and it sat on my own home screen for months without me registering it. You opened your app drawer and decided it was worth a pull request, which is a good deal more effort than not doing that. Credited in THANKS.md — #320. The |
|
Heads-up so you don't start on it: #319 has landed as #324, within a day of me offering it to you. Sorry for the fake invitation — the release went out and it was easier to finish it while the context was fresh than to leave a known-broken interaction sitting in the tracker. Your version was right about the destination. The part that needed the extra step was the activity, not just the package: The launchable activity keeps its original package, so the So the suffix is in, debug and production installs coexist, and the smoke job is green against a suffixed APK. Thanks again for both halves of this. |
Left is before, right is after. Also adds
.debugsuffix to debug builds.