Android launcher: drop monochrome (themed) icon, keep color only
The monochrome adaptive-icon layer produced a poor themed-icon rendering. Remove the <monochrome> reference from mipmap-anydpi-v26/ic_launcher.xml and delete the ic_launcher_monochrome.png files so Android always uses the color adaptive icon (background + foreground). sync-android-sources.sh also drops any monochrome layer Tauri regenerates. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e2c12615c5
commit
8938e3fdba
@ -65,6 +65,11 @@ if [ -d "$RES_SRC" ]; then
|
|||||||
cp "$dir"/* "$RES_DST/$name/"
|
cp "$dir"/* "$RES_DST/$name/"
|
||||||
echo " Copied res: $name"
|
echo " Copied res: $name"
|
||||||
done
|
done
|
||||||
|
# We ship only the color adaptive icon (background + foreground). Drop any
|
||||||
|
# monochrome layer Tauri may generate: the themed-icon monochrome doesn't
|
||||||
|
# render well, and our adaptive-icon xml no longer references it, so a stray
|
||||||
|
# ic_launcher_monochrome.png would just be dead weight.
|
||||||
|
rm -f "$RES_DST"/mipmap-*/ic_launcher_monochrome.png
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "✓ Android sources synced successfully"
|
echo "✓ Android sources synced successfully"
|
||||||
|
|||||||
@ -2,5 +2,4 @@
|
|||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@mipmap/ic_launcher_background"/>
|
<background android:drawable="@mipmap/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
|
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB |
Loading…
x
Reference in New Issue
Block a user