Skip to content

Build your personal knowledge base with Trilium Notes

chore(mobile): icon clipped on Samsung with squircle

Elian Doran4914ff7601ca
diff --git a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
index c1493598e5..0ca16b56f5 100644
Binary files a/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
index 91d209c213..b666caa35a 100644
Binary files a/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
index 016536edbf..e1e796e57a 100644
Binary files a/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
index 06e9ff7e78..86d0e3c8ea 100644
Binary files a/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index f72c28bfe4..f688953903 100644
Binary files a/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/scripts/icons/create-icons.sh b/scripts/icons/create-icons.sh
index 7ac3f11271..c02cd88bd3 100644
--- a/scripts/icons/create-icons.sh
+++ b/scripts/icons/create-icons.sh
@@ -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"