From: Damyan Ivanov Date: Wed, 30 Jan 2019 19:46:16 +0000 (+0000) Subject: populate app icons in different resolutions X-Git-Tag: v0.4.4~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=71dcb4bdfb0acd8c46c4760b970e316d0e111c1b;p=mobile-ledger.git populate app icons in different resolutions --- diff --git a/app/src/main/res/drawable-hdpi/ic_app_icon.png b/app/src/main/res/drawable-hdpi/ic_app_icon.png new file mode 100644 index 00000000..673c179a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_app_icon.png b/app/src/main/res/drawable-ldpi/ic_app_icon.png new file mode 100644 index 00000000..bc653874 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_app_icon.png b/app/src/main/res/drawable-mdpi/ic_app_icon.png new file mode 100644 index 00000000..d4d5f64f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-tvdpi/ic_app_icon.png b/app/src/main/res/drawable-tvdpi/ic_app_icon.png new file mode 100644 index 00000000..a14c0ebf Binary files /dev/null and b/app/src/main/res/drawable-tvdpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_app_icon.png b/app/src/main/res/drawable-xhdpi/ic_app_icon.png new file mode 100644 index 00000000..1897ee34 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_app_icon.png b/app/src/main/res/drawable-xxhdpi/ic_app_icon.png new file mode 100644 index 00000000..c89edea9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_app_icon.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_app_icon.png b/app/src/main/res/drawable-xxxhdpi/ic_app_icon.png new file mode 100644 index 00000000..0c53b1cc Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_app_icon.png differ diff --git a/tools/populate-app-icon b/tools/populate-app-icon new file mode 100755 index 00000000..06dc7a4a --- /dev/null +++ b/tools/populate-app-icon @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e +set -u + +ROOT_DIR=$(dirname $(realpath "$0"))/.. +ART_DIR="$ROOT_DIR/art" +RES_DIR="$ROOT_DIR/app/src/main/res" +ICON_ART="$ART_DIR/app-icon.svg" + +gen_icons() { + while read size name; do + mkdir -p "$RES_DIR/drawable-$name" + convert "$ICON_ART" -scale ${size}x${size} \ + -antialias -strip \ + "$RES_DIR/drawable-$name/ic_app_icon.png" + done +} + +cat <