diff --git a/graphics/icon_gen.sh b/graphics/icon_gen.sh new file mode 100755 index 0000000000..d456002b0a --- /dev/null +++ b/graphics/icon_gen.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +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)) diff --git a/graphics/riot_splash_0_green.svg b/graphics/riot_splash_0_green.svg new file mode 100644 index 0000000000..19108415ec --- /dev/null +++ b/graphics/riot_splash_0_green.svg @@ -0,0 +1,77 @@ + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 092817a6cc..46ed966835 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -27,7 +27,7 @@ android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/AppTheme.Light" + android:theme="@style/AppTheme.SC.Light" tools:replace="android:allowBackup"> diff --git a/vector/src/main/res/drawable-hdpi/riot_splash_0_green.png b/vector/src/main/res/drawable-hdpi/riot_splash_0_green.png new file mode 100644 index 0000000000..cbc4672884 Binary files /dev/null and b/vector/src/main/res/drawable-hdpi/riot_splash_0_green.png differ diff --git a/vector/src/main/res/drawable-mdpi/riot_splash_0_green.png b/vector/src/main/res/drawable-mdpi/riot_splash_0_green.png new file mode 100644 index 0000000000..c438f24a7e Binary files /dev/null and b/vector/src/main/res/drawable-mdpi/riot_splash_0_green.png differ diff --git a/vector/src/main/res/drawable-xhdpi/riot_splash_0_green.png b/vector/src/main/res/drawable-xhdpi/riot_splash_0_green.png new file mode 100644 index 0000000000..e9e1769502 Binary files /dev/null and b/vector/src/main/res/drawable-xhdpi/riot_splash_0_green.png differ diff --git a/vector/src/main/res/drawable-xxhdpi/riot_splash_0_green.png b/vector/src/main/res/drawable-xxhdpi/riot_splash_0_green.png new file mode 100644 index 0000000000..8d181ef100 Binary files /dev/null and b/vector/src/main/res/drawable-xxhdpi/riot_splash_0_green.png differ diff --git a/vector/src/main/res/drawable-xxxhdpi/riot_splash_0_green.png b/vector/src/main/res/drawable-xxxhdpi/riot_splash_0_green.png new file mode 100644 index 0000000000..edeb29c648 Binary files /dev/null and b/vector/src/main/res/drawable-xxxhdpi/riot_splash_0_green.png differ diff --git a/vector/src/main/res/drawable/ic_launcher_background.xml b/vector/src/main/res/drawable/ic_launcher_background.xml index e6850c4b9e..dec825db51 100644 --- a/vector/src/main/res/drawable/ic_launcher_background.xml +++ b/vector/src/main/res/drawable/ic_launcher_background.xml @@ -5,6 +5,6 @@ android:viewportHeight="108"> diff --git a/vector/src/main/res/drawable/riot_animated_logo.xml b/vector/src/main/res/drawable/riot_animated_logo.xml index 39c55fc004..e22b790359 100644 --- a/vector/src/main/res/drawable/riot_animated_logo.xml +++ b/vector/src/main/res/drawable/riot_animated_logo.xml @@ -1,6 +1,10 @@ + + + diff --git a/vector/src/main/res/drawable/rounded_rect_shape.xml b/vector/src/main/res/drawable/rounded_rect_shape.xml index e9c0a27f59..7c4b1c035b 100644 --- a/vector/src/main/res/drawable/rounded_rect_shape.xml +++ b/vector/src/main/res/drawable/rounded_rect_shape.xml @@ -6,8 +6,8 @@ - + - \ No newline at end of file + diff --git a/vector/src/main/res/drawable/splash.xml b/vector/src/main/res/drawable/splash.xml index e14ff2d517..c436427179 100644 --- a/vector/src/main/res/drawable/splash.xml +++ b/vector/src/main/res/drawable/splash.xml @@ -5,13 +5,13 @@ android:opacity="opaque"> - + + android:src="@drawable/riot_splash_0_green" /> - \ No newline at end of file + diff --git a/vector/src/main/res/values/theme_sc.xml b/vector/src/main/res/values/theme_sc.xml index 2e118a78ab..3b9b057411 100644 --- a/vector/src/main/res/values/theme_sc.xml +++ b/vector/src/main/res/values/theme_sc.xml @@ -234,4 +234,10 @@ +