diff --git a/graphics/ic_launcher.svg b/graphics/ic_launcher.svg new file mode 100644 index 0000000000..95e216f06e --- /dev/null +++ b/graphics/ic_launcher.svg @@ -0,0 +1,82 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/graphics/ic_launcher_round.svg b/graphics/ic_launcher_round.svg new file mode 100644 index 0000000000..c5feb1480b --- /dev/null +++ b/graphics/ic_launcher_round.svg @@ -0,0 +1,109 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/graphics/ic_launcher_round_tmp.svg b/graphics/ic_launcher_round_tmp.svg new file mode 100644 index 0000000000..4b4da372fa --- /dev/null +++ b/graphics/ic_launcher_round_tmp.svg @@ -0,0 +1,103 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/graphics/icon_gen.sh b/graphics/icon_gen.sh index d456002b0a..49a187ab30 100755 --- a/graphics/icon_gen.sh +++ b/graphics/icon_gen.sh @@ -4,19 +4,33 @@ mydir="$(dirname "$(realpath "$0")")" base_out="$mydir/../vector/src/main/res" -file="$mydir/riot_splash_0_green.svg" - dpi=96 + base_folder="$mydir/../vector/src/main/res/drawable" -newfile="$(basename "$file" .svg).png" -mkdir -p $base_folder-mdpi -mkdir -p $base_folder-hdpi -mkdir -p $base_folder-xhdpi -mkdir -p $base_folder-xxhdpi -mkdir -p $base_folder-xxxhdpi -inkscape "$file" --export-filename="$base_folder-mdpi/$newfile" -C --export-dpi=$dpi -inkscape "$file" --export-filename="$base_folder-hdpi/$newfile" -C --export-dpi=$(($dpi*3/2)) -inkscape "$file" --export-filename="$base_folder-xhdpi/$newfile" -C --export-dpi=$(($dpi*2)) -inkscape "$file" --export-filename="$base_folder-xxhdpi/$newfile" -C --export-dpi=$(($dpi*3)) -inkscape "$file" --export-filename="$base_folder-xxxhdpi/$newfile" -C --export-dpi=$(($dpi*4)) +file="$mydir/riot_splash_0_green.svg" +export_files + +export_files() { + newfile="$(basename "$file" .svg).png" + mkdir -p $base_folder-mdpi + mkdir -p $base_folder-hdpi + mkdir -p $base_folder-xhdpi + mkdir -p $base_folder-xxhdpi + mkdir -p $base_folder-xxxhdpi + inkscape "$file" --export-filename="$base_folder-mdpi/$newfile" -C --export-dpi=$dpi + inkscape "$file" --export-filename="$base_folder-hdpi/$newfile" -C --export-dpi=$(($dpi*3/2)) + inkscape "$file" --export-filename="$base_folder-xhdpi/$newfile" -C --export-dpi=$(($dpi*2)) + inkscape "$file" --export-filename="$base_folder-xxhdpi/$newfile" -C --export-dpi=$(($dpi*3)) + inkscape "$file" --export-filename="$base_folder-xxxhdpi/$newfile" -C --export-dpi=$(($dpi*4)) +} + + +base_folder="$mydir/../vector/src/main/res/mipmap" +dpi=24 # 96/4 + +file="$mydir/ic_launcher.svg" +export_files + +file="$mydir/ic_launcher_round.svg" +export_files diff --git a/vector/src/main/res/mipmap-hdpi/ic_launcher.png b/vector/src/main/res/mipmap-hdpi/ic_launcher.png index 90a6b5977b..073d2e3749 100644 Binary files a/vector/src/main/res/mipmap-hdpi/ic_launcher.png and b/vector/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/vector/src/main/res/mipmap-hdpi/ic_launcher_round.png b/vector/src/main/res/mipmap-hdpi/ic_launcher_round.png index 5c205f3069..90dc57c201 100644 Binary files a/vector/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/vector/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/vector/src/main/res/mipmap-mdpi/ic_launcher.png b/vector/src/main/res/mipmap-mdpi/ic_launcher.png index b499d124f5..77b48b5ee6 100644 Binary files a/vector/src/main/res/mipmap-mdpi/ic_launcher.png and b/vector/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/vector/src/main/res/mipmap-mdpi/ic_launcher_round.png b/vector/src/main/res/mipmap-mdpi/ic_launcher_round.png index ac9d4d9b31..8070bb0ddc 100644 Binary files a/vector/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/vector/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/vector/src/main/res/mipmap-xhdpi/ic_launcher.png b/vector/src/main/res/mipmap-xhdpi/ic_launcher.png index 5b393bca8a..670d5df891 100644 Binary files a/vector/src/main/res/mipmap-xhdpi/ic_launcher.png and b/vector/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/vector/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/vector/src/main/res/mipmap-xhdpi/ic_launcher_round.png index 269e47d393..77c25de4a1 100644 Binary files a/vector/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/vector/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/vector/src/main/res/mipmap-xxhdpi/ic_launcher.png b/vector/src/main/res/mipmap-xxhdpi/ic_launcher.png index 77c7c2351d..8290041637 100644 Binary files a/vector/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/vector/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/vector/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/vector/src/main/res/mipmap-xxhdpi/ic_launcher_round.png index 46c7034c71..be5aabe6d5 100644 Binary files a/vector/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/vector/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/vector/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/vector/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 6ec8243ec9..ead1042072 100644 Binary files a/vector/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/vector/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/vector/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/vector/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png index 5246c81971..dd10a3ff75 100644 Binary files a/vector/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/vector/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ