summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-12-04 16:59:59 +0100
committercyberta <cyberta@riseup.net>2022-12-04 16:59:59 +0100
commite963546dd01627d1a7c9f38467733ae80cddaef3 (patch)
tree64012bd7ba987140ee0b6460df7e452a281ef3fd
parent7bb9d4210d1411294bc2d8152d6d56a5e5f8e207 (diff)
implement RiseupVPN splash screen for Android API 31+
-rw-r--r--app/src/custom/res/drawable/splash_branding.xml47
-rw-r--r--app/src/custom/res/drawable/splash_icon.xml17
-rw-r--r--app/src/custom/res/drawable/splash_page.xml10
-rw-r--r--app/src/main/res/values-v31/themes.xml8
4 files changed, 82 insertions, 0 deletions
diff --git a/app/src/custom/res/drawable/splash_branding.xml b/app/src/custom/res/drawable/splash_branding.xml
new file mode 100644
index 00000000..8bbd83ca
--- /dev/null
+++ b/app/src/custom/res/drawable/splash_branding.xml
@@ -0,0 +1,47 @@
+<vector
+ android:height="80dp"
+ android:viewportHeight="80"
+ android:viewportWidth="160"
+ android:width="160dp"
+ xmlns:android="http://schemas.android.com/apk/res/android">
+ <group
+ android:translateX="-47"
+ android:translateY="0"
+ android:scaleX="0.25"
+ android:scaleY="0.25"
+ >
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m264.7,196.6 l-3.6,-37.6 -0.7,-28.1 12.8,-1.4 1.4,10.9 8.8,-8.8 18.3,-2.7 7.5,2.7 -1.4,14.6 -9.5,-2 -7.7,1.1 -6.9,7.6 -5,6.6 1.8,25.2 0.9,14.1z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m315.4,156.4 l-4.2,42.3l19,0l0,-27.9 0,-14z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m383.1,150.1 l5.7,-11.5 -10.4,-4.1 -11.1,-3.4 -17.4,6.9 -9.1,14.4 2.8,14.4 17.4,5.5 15.3,6.9 -1.1,7.7 -7.8,3.9 -16.2,-0.7 -7.7,-6.9 -7,11 9.1,8.2 27.9,2.7 14.6,-2.7 2.1,-14.4 1.4,-18.5 -17.4,-8.9 -12.5,-2.7 -0.7,-8.2 8.4,-4.8z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m408.5,164.9 l19.2,-0.9 21.1,-0.7 -0.7,-17.8 -10.9,-8.9 -25.2,-3.4 -15,8.2 -3.4,18.5l0,20.5l10.9,13.7 25.9,8.9l16.3,0l6.1,-7.5 -7.5,-11 -6.8,4.8 -19.7,-2.7 -7.5,-4.8 -4.1,-8.9z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m457.2,141.6l0,25.1l3.4,19.2 9.6,13 7.6,4.1l18.6,0l13.8,-8.9 3.4,-19.8 0.7,-26l0,-12.3l-14.8,-0.7l0,16.4l-0.3,22.6 -4.1,15.7 -8.3,2.1 -9.6,-4.8 -4.1,-10.9 -1.3,-22.5 0.5,-14.4z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m522.8,135.3 l-0.5,32.3 -1.6,29.4 1.3,3.8 13.2,-1.2 1.2,-35.5 20.4,-1.8 6.4,-6.6 1.9,-14.5 -6.2,-9.6 -23,-2.7z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m594.7,200.9 l-2.1,-30.4L592.6,139.5l14.8,0l0,12.4l11,-11 19.5,-3.4 13.2,10.3 -0.7,25.5 1.4,27.6 -16,-1.4 0.7,-26.9 -3.5,-15.2 -8.4,2.1 -9.8,2.8 -7.5,9.7l0,16.6 0,12.4z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m681.5,171.2 l22.9,-1.8 13.1,-2.1 -2.1,-19.6 -27.6,-14.7 -16.5,9.8 -8.3,16.1 -4.8,22.4 10.3,20.3 16.5,3.5 19.3,-0.7 11.7,-8.4 -9.6,-12.6 -3.4,4.2 -17.9,4.2 -11,-11.2 1.4,-6.3z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m723.8,135.3 l12.5,-0.2 -0.4,-14.6 13.5,2.1 1.4,12.8 15.3,-0.5l0,14.2l-16.3,-0.3 -0.7,11.6l0,14.5 0,11l3.6,6 10.6,-0.9 2,11.3 2.9,11.2 -21,-8.5 -10.7,-9.7 -2.7,-11.8 -0.1,-13.5 1.1,-21.7 -11.2,-0.4 0.1,-12.8z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000"
+ android:pathData="m332.4,152.2 l-13,-1 -1.3,-14c0,0 -6.6,-13.1 -10.7,-15.1 -4.1,-2 -8.8,-6.1 -8.8,-6.1 0,0 5.4,-4.7 10.2,-1.3 4.8,3.4 4.8,4 4.8,4 0,0 5.4,2 6.8,-8.1 1.4,-10.1 5.3,-24.8 5.3,-24.8 0,0 2.7,-4 4.8,-1.3 2,2.7 -4,25.5 -4,25.5l11.9,-25.2c0,0 3.4,-3.4 4.1,0.7 0.7,4 -8.5,25.2 -8.5,25.2l11.7,-17.5c0,0 4.8,-2.7 4.8,1.3 0,4 -11,18.2 -11,18.2l14.4,-8.6c0,0 4.8,-1.3 4.1,2.7 -0.7,4 -14.2,7.4 -17.8,16 -3.9,8.6 -7.6,29.5 -7.6,29.5z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ <path android:fillColor="#000000" android:fillType="evenOdd"
+ android:pathData="m567.2,186 l-2.1,14.8 14.8,-1.3 -2.7,-13.5z"
+ android:strokeColor="#00000000" android:strokeWidth="0.6"/>
+ </group>
+</vector>
diff --git a/app/src/custom/res/drawable/splash_icon.xml b/app/src/custom/res/drawable/splash_icon.xml
new file mode 100644
index 00000000..e8335bc6
--- /dev/null
+++ b/app/src/custom/res/drawable/splash_icon.xml
@@ -0,0 +1,17 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt"
+ android:viewportWidth="288"
+ android:viewportHeight="288"
+ android:width="288dp"
+ android:height="288dp">
+ <group
+ android:scaleX="0.9"
+ android:scaleY="0.9"
+ android:translateX="86"
+ android:translateY="56"
+ >
+ <path
+ android:pathData="M69.8243 44.3636C69.8243 44.3636 66.935 38.7879 66.6942 38.0606C66.4534 37.3333 65.0088 29.3333 65.0088 29.3333L66.935 25.9394L71.2689 19.6364L77.2882 14.7879L78.7328 14.303L93.42 8.72727L94.8647 7.27273L93.42 4.84849L91.2531 3.63636L87.4007 2.66666L77.7698 1.69697H70.3058L65.2496 2.90909L60.6749 1.21212L54.8963 0.484846L46.4692 0.242421L42.1353 0L35.1529 2.66666L24.3181 15.2727L22.8735 20.1212L22.1511 24.4848L18.5395 32.4848L16.1318 40L14.9279 48V49.697L9.39016 58.1818L6.26011 64.4848V73.4545L7.2232 92.1212L8.90861 98.9091L12.2794 105.212L16.6134 109.333L18.5395 117.333L25.7627 133.576L34.4306 144L34.9121 144.485L38.0422 160.242L27.4482 179.636L24.0773 182.303L21.6696 184.242H17.3357L14.9279 185.455L12.0387 185.697L10.3533 187.394L6.74165 186.909L3.13006 186.667L0.481548 188.606L0 192L1.92619 189.818L5.05624 188.848L5.29701 192L10.3533 190.303L13.2425 190.061L18.2988 190.788C18.2988 190.788 22.6327 190.545 23.355 190.303C24.0773 190.303 28.8928 190.788 28.8928 190.788L32.2636 190.303L34.1898 191.03L36.5975 190.303L39.246 191.515L43.0984 191.03L43.58 188.364L43.3392 186.909L45.9877 187.879L48.1547 189.576L49.5993 191.515V189.091L47.9139 186.182C47.9139 186.182 46.71 184.485 45.9877 184.727C45.2654 184.727 42.3761 184.242 42.3761 184.242L40.4499 184.97L38.283 184L36.116 185.212L34.1898 184.485L33.2267 182.545L31.7821 182.061L33.2267 178.182L36.5975 173.333L41.1722 165.576L45.2654 160.727L46.71 158.788C46.71 158.788 48.6362 155.879 48.6362 155.152C48.6362 154.424 49.1178 146.182 49.1178 146.182L46.71 140.848L45.5061 136.485L67.6573 141.818H68.8612L87.8823 155.636L90.5308 159.03L91.4938 172.848L91.0123 176L89.5677 178.424L88.6046 179.879L87.8823 182.061L87.4007 183.515L83.7891 184.727L80.1775 184L78.0106 183.758L73.9174 184.242L72.232 185.939L71.5097 188.121L71.9912 190.303L72.7135 188.121L73.9174 186.667L75.1213 186.424V188.364L76.5659 189.333L79.696 187.879L81.1406 187.636L81.6221 189.818H86.1968L89.3269 188.848L91.9754 189.333L95.8278 189.818L97.0316 189.333L97.9947 188.364L99.6801 191.758V187.879L97.9947 183.515L95.587 182.061L96.0686 180.848L94.3831 177.455L94.6239 164.849L104.255 176.242L117.016 186.182C117.016 186.182 125.684 189.333 126.406 189.333C127.128 189.333 133.148 188.606 133.148 188.606L137 182.303L134.111 173.576L135.315 170.667L129.295 162.667L116.293 149.333L113.163 138.909L113.404 131.879L110.515 124.364L107.385 118.788L109.311 112.727L107.866 104L101.366 89.2121L103.773 88.7273L99.4394 81.9394L102.088 81.2121L97.5132 73.697L99.4394 72.7273L96.0686 66.9091L97.2724 66.1818L92.9385 62.5455L94.3831 61.8182L83.5483 54.0606L69.8243 44.3636Z"
+ android:fillColor="#000000" />
+ </group>
+
+</vector> \ No newline at end of file
diff --git a/app/src/custom/res/drawable/splash_page.xml b/app/src/custom/res/drawable/splash_page.xml
index 4c72dfe2..48a622ac 100644
--- a/app/src/custom/res/drawable/splash_page.xml
+++ b/app/src/custom/res/drawable/splash_page.xml
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+********************************************************************
+Splash screen for Android 4.1 - Android 11
+
+You need to adapt:
+> splash_branding.xml
+> splash_icon.xml
+for Android 12+.
+********************************************************************
+-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!--Replace custom/res/drawable-hdpi/ic_splash_background with background image-->
diff --git a/app/src/main/res/values-v31/themes.xml b/app/src/main/res/values-v31/themes.xml
new file mode 100644
index 00000000..81d6c19e
--- /dev/null
+++ b/app/src/main/res/values-v31/themes.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
+ <item name="android:windowSplashScreenBackground">@color/colorPrimary</item>
+ <item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
+ <item name="android:windowSplashScreenBrandingImage">@drawable/splash_branding</item>
+ </style>
+</resources> \ No newline at end of file