Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(mobile): icon clipped on Samsung with squircle
Elian Doran97438ed46f47
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.pngindex 3c026db59a..c1493598e5 100644Binary 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 differdiff --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.pngindex 7666da69c7..91d209c213 100644Binary 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 differdiff --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.pngindex ca1b746f5a..016536edbf 100644Binary 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 differdiff --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.pngindex 656353b370..06e9ff7e78 100644Binary 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 differdiff --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.pngindex 9e00af6a71..f72c28bfe4 100644Binary 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 differdiff --git a/scripts/icons/create-icons.sh b/scripts/icons/create-icons.shindex 545e95fec7..7ac3f11271 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; domipmap_dir="$mobile_res_dir/mipmap-$density"mkdir -p "$mipmap_dir"- # Adaptive foreground: logo at 60% of the 108dp canvas. The 72dp (66%) safe+ # Adaptive foreground: logo at 55% 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 ))+ fg_logo=$(( foreground_size * 11 / 20 ))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"