aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/graphics/update-drawables.sh
diff options
context:
space:
mode:
authormar-v-in <github@rvin.mooo.com>2014-06-19 13:57:35 +0200
committermar-v-in <github@rvin.mooo.com>2014-06-19 13:57:35 +0200
commit58706425d62e40c0ecc9164a8fee089ca471e1fe (patch)
treed250292332dce208760847f150c4e627607d8028 /Resources/graphics/update-drawables.sh
parentd9c937bbe762736d9f0c45d5ba0083555c8da2e1 (diff)
parent48c96184dcf2837f9be2e5bdb116bedd86098eb3 (diff)
downloadopen-keychain-58706425d62e40c0ecc9164a8fee089ca471e1fe.tar.gz
open-keychain-58706425d62e40c0ecc9164a8fee089ca471e1fe.tar.bz2
open-keychain-58706425d62e40c0ecc9164a8fee089ca471e1fe.zip
Merge branch 'master' of https://github.com/open-keychain/open-keychain into improve-file
Diffstat (limited to 'Resources/graphics/update-drawables.sh')
-rwxr-xr-xResources/graphics/update-drawables.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/Resources/graphics/update-drawables.sh b/Resources/graphics/update-drawables.sh
new file mode 100755
index 000000000..c1dfc77e6
--- /dev/null
+++ b/Resources/graphics/update-drawables.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+APP_DIR=../../OpenKeychain/src/main
+LDPI_DIR=$APP_DIR/res/drawable-ldpi
+MDPI_DIR=$APP_DIR/res/drawable-mdpi
+HDPI_DIR=$APP_DIR/res/drawable-hdpi
+XDPI_DIR=$APP_DIR/res/drawable-xhdpi
+XXDPI_DIR=$APP_DIR/res/drawable-xxhdpi
+XXXDPI_DIR=$APP_DIR/res/drawable-xxxhdpi
+PLAY_DIR=./
+
+
+# Launcher Icon:
+# -----------------------
+# ldpi: 36x36
+# mdpi: 48x48
+# hdpi: 72x72
+# xhdpi: 96x96
+# xxhdpi: 144x144.
+# xxxhdpi 192x192.
+# google play: 512x512
+
+NAME="ic_launcher"
+
+inkscape -w 36 -h 36 -e "$LDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 48 -h 48 -e "$MDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 72 -h 72 -e "$HDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 96 -h 96 -e "$XDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 144 -h 144 -e "$XXDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 192 -h 192 -e "$XXXDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 512 -h 512 -e "$PLAY_DIR/$NAME.png" $NAME.svg
+
+# Actionbar Icons
+# -----------------------
+# mdpi: 32x32
+# hdpi: 48x48
+# xhdpi: 64x64
+# xxhdpi: 96x96
+
+for NAME in "ic_action_nfc" "ic_action_qr_code"
+do
+inkscape -w 32 -h 32 -e "$MDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 48 -h 48 -e "$HDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 64 -h 64 -e "$XDPI_DIR/$NAME.png" $NAME.svg
+inkscape -w 96 -h 96 -e "$XXDPI_DIR/$NAME.png" $NAME.svg
+done \ No newline at end of file