chore(mobile): icon clipped on Samsung with squircle

This commit is contained in:
Elian Doran
2026-04-20 20:20:06 +03:00
parent 97438ed46f
commit 4914ff7601
6 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -102,10 +102,10 @@ for density in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
mipmap_dir="$mobile_res_dir/mipmap-$density"
mkdir -p "$mipmap_dir"
# Adaptive foreground: logo at 55% of the 108dp canvas. The 72dp (66%) safe
# Adaptive foreground: logo at 50% 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 * 11 / 20 ))
fg_logo=$(( foreground_size / 2 ))
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"