diff --git a/graphics/icon_gen.sh b/graphics/icon_gen.sh index 49a187ab30..9291c874c3 100755 --- a/graphics/icon_gen.sh +++ b/graphics/icon_gen.sh @@ -4,13 +4,6 @@ mydir="$(dirname "$(realpath "$0")")" base_out="$mydir/../vector/src/main/res" -dpi=96 - -base_folder="$mydir/../vector/src/main/res/drawable" - -file="$mydir/riot_splash_0_green.svg" -export_files - export_files() { newfile="$(basename "$file" .svg).png" mkdir -p $base_folder-mdpi @@ -25,6 +18,19 @@ export_files() { inkscape "$file" --export-filename="$base_folder-xxxhdpi/$newfile" -C --export-dpi=$(($dpi*4)) } +dpi=96 + + +base_folder="$mydir/../vector/src/main/res/drawable" + +file="$mydir/riot_splash_0_green.svg" +export_files + +cp "$mydir/ic_launcher.svg" "$mydir/riotx_logo.svg" +file="$mydir/riotx_logo.svg" +export_files +rm "$mydir/riotx_logo.svg" + base_folder="$mydir/../vector/src/main/res/mipmap" dpi=24 # 96/4 diff --git a/vector/src/main/res/drawable-hdpi/riotx_logo.png b/vector/src/main/res/drawable-hdpi/riotx_logo.png index 8d6e3454b8..d2e423e315 100644 Binary files a/vector/src/main/res/drawable-hdpi/riotx_logo.png and b/vector/src/main/res/drawable-hdpi/riotx_logo.png differ diff --git a/vector/src/main/res/drawable-mdpi/riotx_logo.png b/vector/src/main/res/drawable-mdpi/riotx_logo.png index 5c45ebabaf..ead1042072 100644 Binary files a/vector/src/main/res/drawable-mdpi/riotx_logo.png and b/vector/src/main/res/drawable-mdpi/riotx_logo.png differ diff --git a/vector/src/main/res/drawable-xhdpi/riotx_logo.png b/vector/src/main/res/drawable-xhdpi/riotx_logo.png index 651ff38e09..3ecbb5893e 100644 Binary files a/vector/src/main/res/drawable-xhdpi/riotx_logo.png and b/vector/src/main/res/drawable-xhdpi/riotx_logo.png differ diff --git a/vector/src/main/res/drawable-xxhdpi/riotx_logo.png b/vector/src/main/res/drawable-xxhdpi/riotx_logo.png index 1652b970e7..1a2170cd9a 100644 Binary files a/vector/src/main/res/drawable-xxhdpi/riotx_logo.png and b/vector/src/main/res/drawable-xxhdpi/riotx_logo.png differ diff --git a/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png b/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png index fd944daf8f..c6b346b6f6 100644 Binary files a/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png and b/vector/src/main/res/drawable-xxxhdpi/riotx_logo.png differ