[android] Don't use inset for ic_launcher

hardcoding the drawable inset is the only option, as it's not supported on android 5-7
fixes #1175


Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
Harry Bond
2025-07-31 20:41:47 +01:00
parent 8058183f72
commit 5ce753bd5c
2 changed files with 27 additions and 8 deletions

View File

@@ -1,4 +1,15 @@
<inset
xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_logo"
android:inset="24%" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="64dp"
android:height="64dp"
android:viewportWidth="64"
android:viewportHeight="64">
<path
android:pathData="m43.279,20.906a0.803,0.803 0,0 1,1.236 -0.052,16.697 16.697,0 0,1 4.243,11.142 16.697,16.697 0,0 1,-3.745 10.556,0.803 0.803,0 0,1 -1.256,-0.024l-1.726,-2.272a0.803,0.803 0,0 1,-0.008 -0.963,12.322 12.322,0 0,0 2.38,-7.297c0,-2.978 -1.052,-5.712 -2.806,-7.851a0.803,0.803 0,0 1,-0.02 -0.995z"
android:fillColor="#ccdfca"/>
<path
android:pathData="m25.706,33.561a0.803,0.803 0,0 1,-0.309 -1.473l11.319,-7.12a0.803,0.803 0,0 1,1.2 0.911l-3.893,12.8a0.803,0.803 0,0 1,-1.505 0.088l-1.975,-4.475z"
android:fillColor="#ccdfca"/>
<path
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
android:fillColor="#fefdf6"/>
</vector>

View File

@@ -1,4 +1,12 @@
<inset
xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_logo_monochrome"
android:inset="24%" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="64dp"
android:height="64dp"
android:viewportWidth="64"
android:viewportHeight="64">
<path
android:pathData="M43.938,20.588A0.803,0.803 0,0 0,43.279 20.906L41.577,23.15A0.803,0.803 0,0 0,41.597 24.145C43.351,26.284 44.402,29.018 44.402,31.997A12.322,12.322 0,0 1,42.022 39.293A0.803,0.803 0,0 0,42.031 40.257L43.756,42.527A0.803,0.803 0,0 0,45.013 42.552A16.697,16.697 0,0 0,48.757 31.997A16.697,16.697 0,0 0,44.515 20.854A0.803,0.803 0,0 0,43.938 20.588zM37.126,24.842A0.803,0.803 0,0 0,36.716 24.968L25.397,32.089A0.803,0.803 0,0 0,25.707 33.561L30.543,34.292L32.518,38.767A0.803,0.803 0,0 0,34.022 38.679L37.916,25.879A0.803,0.803 0,0 0,37.126 24.842z"
android:fillColor="#BFFFFFFF" />
<path
android:pathData="m40.381,45.466a0.803,0.803 0,0 1,-0.249 1.188,16.697 16.697,0 0,1 -8.132,2.103 16.765,16.765 0,0 1,-16.757 -16.761,16.765 16.765,0 0,1 24.215,-15.007 0.803,0.803 0,0 1,0.281 1.204l-1.702,2.24a0.803,0.803 0,0 1,-0.971 0.245,12.322 12.322,0 0,0 -5.065,-1.084 12.402,12.402 0,0 0,-12.402 12.402c0,6.847 5.559,12.402 12.402,12.402a12.322,12.322 0,0 0,5.683 -1.377,0.803 0.803,0 0,1 1.007,0.225z"
android:fillColor="#FFFFFF"/>
</vector>