From 0730f2b3a9603ca9674b15b449f9381fa086705f Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 29 Jan 2017 16:39:38 +0100 Subject: [PATCH] Ajout d'une icone --- app/src/main/AndroidManifest.xml | 4 ++-- app/src/main/res/drawable-hdpi/etunicorn.png | Bin 0 -> 4944 bytes app/src/main/res/drawable-ldpi/etunicorn.png | Bin 0 -> 2031 bytes app/src/main/res/drawable-mdpi/etunicorn.png | Bin 0 -> 2980 bytes app/src/main/res/drawable-xhdpi/etunicorn.png | Bin 0 -> 7221 bytes app/src/main/res/drawable-xxhdpi/etunicorn.png | Bin 0 -> 11816 bytes app/src/main/res/drawable-xxxhdpi/etunicorn.png | Bin 0 -> 16722 bytes generateAndroidIcon.sh | 13 +++++++++++++ logo.svg | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 239 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/etunicorn.png create mode 100644 app/src/main/res/drawable-ldpi/etunicorn.png create mode 100644 app/src/main/res/drawable-mdpi/etunicorn.png create mode 100644 app/src/main/res/drawable-xhdpi/etunicorn.png create mode 100644 app/src/main/res/drawable-xxhdpi/etunicorn.png create mode 100644 app/src/main/res/drawable-xxxhdpi/etunicorn.png create mode 100755 generateAndroidIcon.sh create mode 100644 logo.svg diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 910aef6..35fd2cc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ @@ -40,4 +40,4 @@ - \ No newline at end of file + diff --git a/app/src/main/res/drawable-hdpi/etunicorn.png b/app/src/main/res/drawable-hdpi/etunicorn.png new file mode 100644 index 0000000..1cb0d1d Binary files /dev/null and b/app/src/main/res/drawable-hdpi/etunicorn.png differ diff --git a/app/src/main/res/drawable-ldpi/etunicorn.png b/app/src/main/res/drawable-ldpi/etunicorn.png new file mode 100644 index 0000000..facfcb8 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/etunicorn.png differ diff --git a/app/src/main/res/drawable-mdpi/etunicorn.png b/app/src/main/res/drawable-mdpi/etunicorn.png new file mode 100644 index 0000000..8b35989 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/etunicorn.png differ diff --git a/app/src/main/res/drawable-xhdpi/etunicorn.png b/app/src/main/res/drawable-xhdpi/etunicorn.png new file mode 100644 index 0000000..d6a05a9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/etunicorn.png differ diff --git a/app/src/main/res/drawable-xxhdpi/etunicorn.png b/app/src/main/res/drawable-xxhdpi/etunicorn.png new file mode 100644 index 0000000..36de803 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/etunicorn.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/etunicorn.png b/app/src/main/res/drawable-xxxhdpi/etunicorn.png new file mode 100644 index 0000000..5e13da2 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/etunicorn.png differ diff --git a/generateAndroidIcon.sh b/generateAndroidIcon.sh new file mode 100755 index 0000000..b38c32e --- /dev/null +++ b/generateAndroidIcon.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +for density in l-36 m-48 h-72 xh-96 xxh-144 xxxh-192 +do + drawdir="${DIR}/app/src/main/res/drawable-$(echo "$density" | cut -d '-' -f 1)dpi" + mkdir -p "$drawdir" + outfile="${drawdir}/etunicorn.png" + size="$(echo "$density" | cut -d '-' -f 2)" + inkscape -z -e "$outfile" -w "$size" -h "$size" "${DIR}/logo.svg" + optipng -o9 "$outfile" +done diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..74fefce --- /dev/null +++ b/logo.svg @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- libgit2 0.21.2