fixup! patches: adaptive_ic_icon: "proper" background

for it to render properly on a15+ launchers

Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
Hikarie Fukirei 2025-11-20 16:21:07 +07:00
commit 31cf3402f2
4 changed files with 13 additions and 3 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#000BD0"
android:pathData="M0,0h108v108h-108z"/>
</vector>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="#000BD0"/>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="#000BD0"/>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View file

@ -12,4 +12,4 @@ blob="$DIRPATH/blob_patches/adaptive_ic_launcher/"
cp -r "$blob"/* "$res"
sed -i '0,/type=.font/s|^.*type="font".*| <public id="0x7f080365" type="drawable" name="ic_launcher_foreground" />\n&|' "$res"/values/public.xml
sed -i '0,/type=.font/s|^.*type="font".*| <public id="0x7f080365" type="drawable" name="ic_launcher_background" />\n <public id="0x7f080366" type="drawable" name="ic_launcher_foreground" />\n&|' "$res"/values/public.xml