chore(mobile): icon clipped on Pixel 10

This commit is contained in:
Elian Doran
2026-04-20 20:12:03 +03:00
parent 89d89318a0
commit f4790e59eb
6 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -102,8 +102,10 @@ for density in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
mipmap_dir="$mobile_res_dir/mipmap-$density"
mkdir -p "$mipmap_dir"
# Adaptive foreground (transparent, logo in safe zone)
fg_logo=$(( foreground_size * 2 / 3 ))
# Adaptive foreground: logo at 60% of the 108dp canvas. The 72dp (66%) safe
# zone is the hard clip boundary — any launcher mask (circle, squircle,
# teardrop) can trim up to it, so we leave extra margin inside.
fg_logo=$(( foreground_size * 3 / 5 ))
inkscape -w $fg_logo -h $fg_logo "$source_icon_dir/icon-color.svg" -o "$mipmap_dir/_tmp_fg.png"
magick "$mipmap_dir/_tmp_fg.png" -background none -gravity center \
-extent ${foreground_size}x${foreground_size} "$mipmap_dir/ic_launcher_foreground.png"