From 2e50356f81838ddfc5655f9ba80ebeb24b4c8a28 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 28 Jun 2026 23:35:03 +0200 Subject: [PATCH] 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) --- .../res/drawable/ic_launcher_foreground.xml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml index 450b032..e809cc4 100644 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -12,9 +12,14 @@ slot so Android 13+ themed-icon launchers can recolour it. Centering / scale: - - The artwork's visual centre sits at (269, 256) in the 512 viewport. - - Pivot there, scale 0.66 (matching Calendula's ~2.8dp stroke weight and - generous padding), then translate (-13, 0) onto the 512 canvas centre. + - Scale 0.66 about the canvas centre (matching Calendula's ~2.8dp stroke + weight and generous padding). + - 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. --> + android:translateY="13.24">