fix monochrome icon on some devices

This commit is contained in:
Milind Goel 2023-03-15 18:31:20 +05:30
parent 74b317e159
commit 21b142d341
4 changed files with 33 additions and 29 deletions

View file

@ -0,0 +1,31 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="192dp"
android:height="192dp"
android:viewportWidth="192"
android:viewportHeight="192">
<path
android:pathData="M127.54,102.2l-47.91,27.67c-4.78,2.76 -10.75,-0.69 -10.75,-6.21v-55.33c0,-5.52 5.97,-8.97 10.74,-6.21l47.92,27.67c4.78,2.76 4.78,9.66 0,12.41Z"
android:strokeWidth="8"
android:fillColor="#00000000"
android:strokeColor="#000"/>
<path
android:fillColor="#FF000000"
android:pathData="M90.83,107.35l-15.96,-27.8h11.2c7.86,0 14.23,6.41 14.23,14.31h0c-0,6.06 -3.8,11.46 -9.47,13.49Z"
android:strokeAlpha="0.2"
android:fillAlpha="0.2"/>
<path
android:fillColor="#FF000000"
android:pathData="M86.82,108.23c1.73,-0 3.46,-0.3 5.09,-0.88l5.3,9.2 1.37,2.38 -18.95,10.95c-4.78,2.76 -10.75,-0.69 -10.75,-6.21v-15.44h17.94Z"
android:strokeAlpha="0.2"
android:fillAlpha="0.2"/>
<path
android:pathData="M69.02,80.43h17.38c7.67,0 13.9,6.23 13.9,13.9v0c0,7.67 -6.23,13.9 -13.9,13.9h-17.38v-27.8h0Z"
android:strokeWidth="8"
android:fillColor="#00000000"
android:strokeColor="#000"/>
<path
android:pathData="M97.45,116.96L93.04,109.31"
android:strokeWidth="8"
android:fillColor="#00000000"
android:strokeColor="#000"/>
</vector>

View file

@ -1,27 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M15.5039,11.3173 L10.2372,8.2765a0.7872,0.7872 0,0 0,-1.1809 0.6824V15.04a0.7879,0.7879 0,0 0,1.1819 0.6823l5.2657,-3.0408A0.7876,0.7876 0,0 0,15.5039 11.3173Z"
android:strokeWidth="0.85"
android:fillColor="#00000000"
android:strokeColor="#000"/>
<path
android:fillColor="#FF000000"
android:pathData="M12.51,11.7653h0a1.5687,1.5687 0,0 0,-1.5639 -1.5734H9.715l1.7539,3.0559A1.5729,1.5729 0,0 0,12.51 11.7653Z"
android:strokeAlpha="0.19"
android:fillAlpha="0.19"/>
<path
android:fillColor="#FF000000"
android:pathData="M9.0563,13.3445v1.6966a0.788,0.788 0,0 0,1.1819 0.6824L12.321,14.52l-0.15,-0.2617 -0.583,-1.0107a1.6715,1.6715 0,0 1,-0.5594 0.0967Z"
android:strokeWidth="0.85"
android:strokeColor="#000"
android:fillAlpha="0.2"/>
<path
android:pathData="M9.0714,10.2888h1.9108A1.5279,1.5279 0,0 1,12.51 11.8167v0a1.5279,1.5279 0,0 1,-1.5279 1.5279H9.0714a0,0 0,0 1,0 0V10.2888A0,0 0,0 1,9.0714 10.2888Z"
android:strokeWidth="0.85"
android:fillColor="#00000000"
android:strokeColor="#000"/>
</vector>

View file

@ -2,5 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/retro_you_icon" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>

View file

@ -2,5 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/retro_you_icon" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
</adaptive-icon>