From d4c63ab7af355d5548f514b79b7ad4980ae854e8 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Mon, 9 Nov 2020 00:12:26 +0100 Subject: adds PiratX logos --- art/generateAndroidDrawables.sh | 88 +++++ art/main_logo.svg | 447 ++++++++++++++++++++++++ art/piratx.svg | 447 ++++++++++++++++++++++++ art/piratx_notification.svg | 229 ++++++++++++ art/splash_logo.svg | 447 ++++++++++++++++++++++++ src/piratx/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 4334 bytes src/piratx/res/drawable-hdpi/main_logo.png | Bin 0 -> 23432 bytes src/piratx/res/drawable-hdpi/splash_logo.png | Bin 0 -> 16028 bytes src/piratx/res/drawable-ldpi/main_logo.png | Bin 0 -> 10477 bytes src/piratx/res/drawable-ldpi/splash_logo.png | Bin 0 -> 7064 bytes src/piratx/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2656 bytes src/piratx/res/drawable-mdpi/main_logo.png | Bin 0 -> 14687 bytes src/piratx/res/drawable-mdpi/splash_logo.png | Bin 0 -> 10033 bytes src/piratx/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 6157 bytes src/piratx/res/drawable-xhdpi/main_logo.png | Bin 0 -> 32691 bytes src/piratx/res/drawable-xhdpi/splash_logo.png | Bin 0 -> 22296 bytes src/piratx/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 10033 bytes src/piratx/res/drawable-xxhdpi/main_logo.png | Bin 0 -> 52266 bytes src/piratx/res/drawable-xxhdpi/splash_logo.png | Bin 0 -> 35447 bytes src/piratx/res/drawable-xxxhdpi/ic_launcher.png | Bin 0 -> 14018 bytes src/piratx/res/drawable-xxxhdpi/main_logo.png | Bin 0 -> 72711 bytes src/piratx/res/drawable-xxxhdpi/splash_logo.png | Bin 0 -> 49571 bytes 22 files changed, 1658 insertions(+) create mode 100644 art/generateAndroidDrawables.sh create mode 100644 art/main_logo.svg create mode 100644 art/piratx.svg create mode 100644 art/piratx_notification.svg create mode 100644 art/splash_logo.svg create mode 100644 src/piratx/res/drawable-hdpi/ic_launcher.png create mode 100644 src/piratx/res/drawable-hdpi/main_logo.png create mode 100644 src/piratx/res/drawable-hdpi/splash_logo.png create mode 100644 src/piratx/res/drawable-ldpi/main_logo.png create mode 100644 src/piratx/res/drawable-ldpi/splash_logo.png create mode 100644 src/piratx/res/drawable-mdpi/ic_launcher.png create mode 100644 src/piratx/res/drawable-mdpi/main_logo.png create mode 100644 src/piratx/res/drawable-mdpi/splash_logo.png create mode 100644 src/piratx/res/drawable-xhdpi/ic_launcher.png create mode 100644 src/piratx/res/drawable-xhdpi/main_logo.png create mode 100644 src/piratx/res/drawable-xhdpi/splash_logo.png create mode 100644 src/piratx/res/drawable-xxhdpi/ic_launcher.png create mode 100644 src/piratx/res/drawable-xxhdpi/main_logo.png create mode 100644 src/piratx/res/drawable-xxhdpi/splash_logo.png create mode 100644 src/piratx/res/drawable-xxxhdpi/ic_launcher.png create mode 100644 src/piratx/res/drawable-xxxhdpi/main_logo.png create mode 100644 src/piratx/res/drawable-xxxhdpi/splash_logo.png diff --git a/art/generateAndroidDrawables.sh b/art/generateAndroidDrawables.sh new file mode 100644 index 000000000..8bfc44cc2 --- /dev/null +++ b/art/generateAndroidDrawables.sh @@ -0,0 +1,88 @@ +#!/bin/sh +# Example usage: +# ./generateAndroidDrawables.sh my_image.png 140 /absolute/path/to/android/res/drawables +# +# Will generate 140dp android drawables for 6 DPI on out/my_image.png/ directory. +# Be sure your original image has sustainable resolution for xxxhdpi drawable, +# which is 140 x 4 PX in case of this example. +# +# Requires ImageMagic +# SVG conversion recommended to be done with Inkscape: +# https://inkscape.org/en/ + + + +IMAGE=$(basename "$1") +IMAGENAME="${IMAGE%.*}" +IMAGEEXT="${IMAGE##*.}" +DPSIZE=$2 + +if [ ! -d "$3" ] ; then + ASSETDIR="out/${IMAGENAME}/drawable-" + echo "Directory '$3' not exists. Using ${ASSETDIR}<\*dpi> for image output" +else + ASSETDIR="$3/drawable-" +fi + + +OSX_INKSCAPE_PATH="/Applications/Inkscape.app/Contents/Resources/bin/inkscape" + +USE_INKSCAPE=0 +INKSCAPE_PATH="" + +if [ $IMAGEEXT == "svg" ] ; then + unamestr="$(uname)" + if [[ "$unamestr" == 'Darwin' ]]; then + INKSCAPE_PATH=$OSX_INKSCAPE_PATH + else + INKSCAPE_PATH=$(which inkscape) + fi + + if [ ! -x "$INKSCAPE_PATH" ] ; then + echo "\x1B[93mWARNING:\x1B[39m Inkskape is not in PATH" + else + USE_INKSCAPE=1 + fi +fi + +if [ ! -x "$(which convert)" ] ; then + echo "\x1B[1;31mERROR:\x1B[39m ImageMagic convert is not in PATH while required for this script" + exit 2 +fi + + +SIZE_ldpi=`echo "$DPSIZE * 0.75" | bc -l` +SIZE_mdpi=$DPSIZE +SIZE_hdpi=`echo "$DPSIZE * 1.5" | bc -l` +SIZE_xhdpi=`expr $DPSIZE \* 2` +SIZE_xxhdpi=`expr $DPSIZE \* 3` +SIZE_xxxhdpi=`expr $DPSIZE \* 4` + + + +mkdir -p "${ASSETDIR}ldpi" +mkdir -p "${ASSETDIR}mdpi" +mkdir -p "${ASSETDIR}hdpi" +mkdir -p "${ASSETDIR}xhdpi" +mkdir -p "${ASSETDIR}xxhdpi" +mkdir -p "${ASSETDIR}xxxhdpi" + +if [ $USE_INKSCAPE == 1 ] ; then + echo "Using inkscape to convert SVG" + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}ldpi/$IMAGENAME.png -w $SIZE_ldpi `pwd`/$IMAGE + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}mdpi/$IMAGENAME.png -w $SIZE_mdpi `pwd`/$IMAGE + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}hdpi/$IMAGENAME.png -w $SIZE_hdpi `pwd`/$IMAGE + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}xhdpi/$IMAGENAME.png -w $SIZE_xhdpi `pwd`/$IMAGE + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}xxhdpi/$IMAGENAME.png -w $SIZE_xxhdpi `pwd`/$IMAGE + $INKSCAPE_PATH -z -e `pwd`/${ASSETDIR}xxxhdpi/$IMAGENAME.png -w $SIZE_xxxhdpi `pwd`/$IMAGE +else + convert $IMAGE \ + \( +clone -resize $SIZE_ldpi -write ${ASSETDIR}ldpi/$IMAGENAME.png +delete \) \ + \( +clone -resize $SIZE_mdpi -write ${ASSETDIR}mdpi/$IMAGENAME.png +delete \) \ + \( +clone -resize $SIZE_hdpi -write ${ASSETDIR}hdpi/$IMAGENAME.png +delete \) \ + \( +clone -resize $SIZE_xhdpi -write ${ASSETDIR}xhdpi/$IMAGENAME.png +delete \) \ + \( +clone -resize $SIZE_xxhdpi -write ${ASSETDIR}xxhdpi/$IMAGENAME.png +delete \) \ + \( +clone -resize $SIZE_xxxhdpi -write ${ASSETDIR}xxxhdpi/$IMAGENAME.png +delete \) \ +null: +fi +echo "\x1B[32mDrawables for $IMAGENAME were successfully created for $DPSIZE DP and can be found in $ASSETDIR<\*dpi> directory \x1B[39m" diff --git a/art/main_logo.svg b/art/main_logo.svg new file mode 100644 index 000000000..9f02d0a7b --- /dev/null +++ b/art/main_logo.svg @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/art/piratx.svg b/art/piratx.svg new file mode 100644 index 000000000..9f02d0a7b --- /dev/null +++ b/art/piratx.svg @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/art/piratx_notification.svg b/art/piratx_notification.svg new file mode 100644 index 000000000..7bf2c515c --- /dev/null +++ b/art/piratx_notification.svg @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/art/splash_logo.svg b/art/splash_logo.svg new file mode 100644 index 000000000..9f02d0a7b --- /dev/null +++ b/art/splash_logo.svg @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/piratx/res/drawable-hdpi/ic_launcher.png b/src/piratx/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 000000000..1bea2f748 Binary files /dev/null and b/src/piratx/res/drawable-hdpi/ic_launcher.png differ diff --git a/src/piratx/res/drawable-hdpi/main_logo.png b/src/piratx/res/drawable-hdpi/main_logo.png new file mode 100644 index 000000000..9735a1b80 Binary files /dev/null and b/src/piratx/res/drawable-hdpi/main_logo.png differ diff --git a/src/piratx/res/drawable-hdpi/splash_logo.png b/src/piratx/res/drawable-hdpi/splash_logo.png new file mode 100644 index 000000000..7d8982d22 Binary files /dev/null and b/src/piratx/res/drawable-hdpi/splash_logo.png differ diff --git a/src/piratx/res/drawable-ldpi/main_logo.png b/src/piratx/res/drawable-ldpi/main_logo.png new file mode 100644 index 000000000..8d2863ef7 Binary files /dev/null and b/src/piratx/res/drawable-ldpi/main_logo.png differ diff --git a/src/piratx/res/drawable-ldpi/splash_logo.png b/src/piratx/res/drawable-ldpi/splash_logo.png new file mode 100644 index 000000000..eb2964e41 Binary files /dev/null and b/src/piratx/res/drawable-ldpi/splash_logo.png differ diff --git a/src/piratx/res/drawable-mdpi/ic_launcher.png b/src/piratx/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 000000000..f2df046ef Binary files /dev/null and b/src/piratx/res/drawable-mdpi/ic_launcher.png differ diff --git a/src/piratx/res/drawable-mdpi/main_logo.png b/src/piratx/res/drawable-mdpi/main_logo.png new file mode 100644 index 000000000..9f5d88a9e Binary files /dev/null and b/src/piratx/res/drawable-mdpi/main_logo.png differ diff --git a/src/piratx/res/drawable-mdpi/splash_logo.png b/src/piratx/res/drawable-mdpi/splash_logo.png new file mode 100644 index 000000000..f8edda90b Binary files /dev/null and b/src/piratx/res/drawable-mdpi/splash_logo.png differ diff --git a/src/piratx/res/drawable-xhdpi/ic_launcher.png b/src/piratx/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 000000000..2c0f16476 Binary files /dev/null and b/src/piratx/res/drawable-xhdpi/ic_launcher.png differ diff --git a/src/piratx/res/drawable-xhdpi/main_logo.png b/src/piratx/res/drawable-xhdpi/main_logo.png new file mode 100644 index 000000000..55ebab3c7 Binary files /dev/null and b/src/piratx/res/drawable-xhdpi/main_logo.png differ diff --git a/src/piratx/res/drawable-xhdpi/splash_logo.png b/src/piratx/res/drawable-xhdpi/splash_logo.png new file mode 100644 index 000000000..e3f73f66a Binary files /dev/null and b/src/piratx/res/drawable-xhdpi/splash_logo.png differ diff --git a/src/piratx/res/drawable-xxhdpi/ic_launcher.png b/src/piratx/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..f8edda90b Binary files /dev/null and b/src/piratx/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/src/piratx/res/drawable-xxhdpi/main_logo.png b/src/piratx/res/drawable-xxhdpi/main_logo.png new file mode 100644 index 000000000..d4f35801f Binary files /dev/null and b/src/piratx/res/drawable-xxhdpi/main_logo.png differ diff --git a/src/piratx/res/drawable-xxhdpi/splash_logo.png b/src/piratx/res/drawable-xxhdpi/splash_logo.png new file mode 100644 index 000000000..7bf3f6a67 Binary files /dev/null and b/src/piratx/res/drawable-xxhdpi/splash_logo.png differ diff --git a/src/piratx/res/drawable-xxxhdpi/ic_launcher.png b/src/piratx/res/drawable-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..d9aa6c0ee Binary files /dev/null and b/src/piratx/res/drawable-xxxhdpi/ic_launcher.png differ diff --git a/src/piratx/res/drawable-xxxhdpi/main_logo.png b/src/piratx/res/drawable-xxxhdpi/main_logo.png new file mode 100644 index 000000000..0d426a566 Binary files /dev/null and b/src/piratx/res/drawable-xxxhdpi/main_logo.png differ diff --git a/src/piratx/res/drawable-xxxhdpi/splash_logo.png b/src/piratx/res/drawable-xxxhdpi/splash_logo.png new file mode 100644 index 000000000..3da7767a9 Binary files /dev/null and b/src/piratx/res/drawable-xxxhdpi/splash_logo.png differ -- cgit v1.2.3