move launcher icons to mipmap folder
This commit is contained in:
1 parent
47dc655ccb
commit
66ead156cb
48 files changed
+21
-10
No files matched your search
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 |
+21
-10
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Reference in new issue
Block a user