icon: centre the launcher mark on the canvas
The first pass shifted the mark off-centre. Scale 0.66 about the canvas centre, and centre the task CARD (not the card+bloom bounding box, which the overhanging bloom badge drags low): pivot the Y-scale at the card's centre (y=242.76) and translate +13.24 so the card sits dead-centre, horizontally and vertically, with the bloom badging out to the lower-right. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,9 +12,14 @@
|
|||||||
<monochrome> slot so Android 13+ themed-icon launchers can recolour it.
|
<monochrome> slot so Android 13+ themed-icon launchers can recolour it.
|
||||||
|
|
||||||
Centering / scale:
|
Centering / scale:
|
||||||
- The artwork's visual centre sits at (269, 256) in the 512 viewport.
|
- Scale 0.66 about the canvas centre (matching Calendula's ~2.8dp stroke
|
||||||
- Pivot there, scale 0.66 (matching Calendula's ~2.8dp stroke weight and
|
weight and generous padding).
|
||||||
generous padding), then translate (-13, 0) onto the 512 canvas centre.
|
- The eye centres on the task CARD, not the card+bloom bounding box (the
|
||||||
|
bloom is a small badge that overhangs the bottom-right). So vertically we
|
||||||
|
centre the card itself: its geometric centre is y=242.76, so we pivot the
|
||||||
|
Y-scale there and translate +13.24 to drop that centre onto the canvas
|
||||||
|
centre (256). Horizontally the card already sits centred, so X scales
|
||||||
|
about 256 untouched.
|
||||||
-->
|
-->
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="108dp"
|
android:width="108dp"
|
||||||
@@ -22,12 +27,11 @@
|
|||||||
android:viewportWidth="512"
|
android:viewportWidth="512"
|
||||||
android:viewportHeight="512">
|
android:viewportHeight="512">
|
||||||
<group
|
<group
|
||||||
android:pivotX="269"
|
android:pivotX="256"
|
||||||
android:pivotY="256"
|
android:pivotY="242.76"
|
||||||
android:scaleX="0.66"
|
android:scaleX="0.66"
|
||||||
android:scaleY="0.66"
|
android:scaleY="0.66"
|
||||||
android:translateX="-13"
|
android:translateY="13.24">
|
||||||
android:translateY="0">
|
|
||||||
<!-- Task card (rounded square, opening at the bottom-right for the bloom) -->
|
<!-- Task card (rounded square, opening at the bottom-right for the bloom) -->
|
||||||
<path
|
<path
|
||||||
android:strokeColor="#FFFAF6F0"
|
android:strokeColor="#FFFAF6F0"
|
||||||
|
|||||||
Reference in New Issue
Block a user