fix(android): scale icon badge into safe zone so the ring is visible

The ring at 0.96 sat in the adaptive-icon bleed zone (outer ~18dp cropped by the
launcher), so only the grid showed. Scale badge + grid to 0.68 so the ring lands
at the edge of the visible circle, and brighten it to grey->white.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-06-19 18:26:32 +01:00
parent 64937df8a2
commit a2fa57456d
2 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Dark fill + the badge's metallic gradient ring, drawn in the background so
it sits at the masked-circle edge and isn't affected by foreground
parallax. Ring brightened (grey→white) so it actually reads on #0A0A0A. -->
<!-- Dark fill + the badge's metallic ring. The ring is scaled to ~0.68 so it
lands inside the adaptive-icon safe zone (the outer ~18dp is cropped by the
launcher) and reads at the edge of the visible circle. Brightened
grey->white so it's clearly visible on #0A0A0A. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
@ -16,11 +17,11 @@
<group
android:pivotX="376"
android:pivotY="376"
android:scaleX="0.96"
android:scaleY="0.96">
android:scaleX="0.68"
android:scaleY="0.68">
<path
android:fillColor="#0A0A0A"
android:strokeWidth="20"
android:strokeWidth="26"
android:pathData="M11.441,375.669a364.227,364.227 0 1,0 728.454,0a364.227,364.227 0 1,0 -728.454,0z">
<aapt:attr name="android:strokeColor">
<gradient
@ -29,8 +30,8 @@
android:startY="751.338"
android:endX="0"
android:endY="0">
<item android:offset="0" android:color="#FF4A4A4A" />
<item android:offset="1" android:color="#FFF0F0F0" />
<item android:offset="0" android:color="#FF777777" />
<item android:offset="1" android:color="#FFFFFFFF" />
</gradient>
</aapt:attr>
</path>

View File

@ -10,8 +10,8 @@
<group
android:pivotX="376"
android:pivotY="376"
android:scaleX="0.96"
android:scaleY="0.96">
android:scaleX="0.68"
android:scaleY="0.68">
<path
android:fillColor="#FFFFFF"
android:pathData="M253.805,278.37V222.28H309.853V278.37H253.805ZM315.797,278.37V222.28H372.694V278.37H315.797ZM378.639,278.37V222.28H435.536V278.37H378.639ZM441.481,278.37V222.28H497.529V278.37H441.481ZM441.481,341.259V284.319H497.529V341.259H441.481ZM503.473,341.259V284.319H560.37V341.259H503.473ZM190.963,404.148V347.208H247.86V404.148H190.963ZM253.805,404.148V347.208H309.853V404.148H253.805ZM315.797,404.148V347.208H372.694V404.148H315.797ZM378.639,404.148V347.208H435.536V404.148H378.639ZM441.481,404.148V347.208H497.529V404.148H441.481ZM503.473,404.148V347.208H560.37V404.148H503.473ZM190.963,466.187V410.097H247.86V466.187H190.963ZM253.805,466.187V410.097H309.853V466.187H253.805ZM441.481,466.187V410.097H497.529V466.187H441.481ZM503.473,466.187V410.097H560.37V466.187H503.473ZM253.805,529.076V472.136H309.853V529.076H253.805ZM315.797,529.076V472.136H372.694V529.076H315.797ZM378.639,529.076V472.136H435.536V529.076H378.639ZM441.481,529.076V472.136H497.529V529.076H441.481Z" />