move launcher icons to mipmap folder

This commit is contained in:
Adrian Ulrich 2018-05-21 14:30:16 +02:00
parent 47dc655ccb
commit 66ead156cb
48 changed files with 21 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -11,20 +11,31 @@
# - optipng
gen() {
name=`basename "$1" .svgz`
png="app/src/main/res/drawable-$2/$name.png"
if [ "$1" -nt "$png" -o ! -e "$png" ]; then
inkscape --without-gui --export-area-page --export-dpi=$3 --export-png="$png" $1
type=$1
path=$2
res=$3
dpi=$4
name=`basename "$path" .svgz`
png="app/src/main/res/$type-$res/$name.png"
if [ "$path" -nt "$png" -o ! -e "$png" ]; then
inkscape --without-gui --export-area-page --export-dpi=$dpi --export-png="$png" $path
echo
fi
}
for i in orig/*.svgz; do
gen "$i" mdpi 96
gen "$i" hdpi 144
gen "$i" xhdpi 192
gen "$i" xxhdpi 288
for i in orig/drawable/*.svgz; do
gen drawable "$i" mdpi 96
gen drawable "$i" hdpi 144
gen drawable "$i" xhdpi 192
gen drawable "$i" xxhdpi 288
done
for i in orig/mipmap/*.svgz; do
gen mipmap "$i" mdpi 96
gen mipmap "$i" hdpi 144
gen mipmap "$i" xhdpi 192
gen mipmap "$i" xxhdpi 288
done
# GOOG tells us to use xxx-hdpi only for launcher icons
gen "orig/icon.svgz" xxxhdpi 384
gen mipmap "orig/mipmap/icon.svgz" xxxhdpi 384

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
orig/mipmap/icon.svgz Normal file

Binary file not shown.