Verified Commit 80b04ba6 authored by cyberta's avatar cyberta

custom theme for riseup vpn

parent 25f822e3
......@@ -72,7 +72,7 @@ android {
//**************************************************************************
//Configurations for custom branded app.
//Change the package name as needed
//Change the package name as needed, e.g. "org.example.myapp"
applicationId "net.riseup.black"
//Set app name here
appName = "Riseup VPN"
......@@ -91,7 +91,7 @@ android {
//Build Config Fields for default donation details
//This is the donation URL and should be set to the relevant donation page.
buildConfigField 'String', 'donation_url', '"https://leap.se/en/about-us/donate"'
buildConfigField 'String', 'donation_url', '"https://riseup.net/vpn/donate"'
//The field to enable donations in the app.
buildConfigField 'boolean', 'enable_donation', 'true'
//The field to enable donation reminder popup in the app if enable_donation is set to 'false' this will be disabled.
......
<vector android:height="24dp" android:viewportHeight="100.0"
android:viewportWidth="100.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:pathData="M50,50m-82000,0a82000,82000 0,1 1,164000 0a82000,82000 0,1 1,-164000 0"/>
<path android:fillAlpha="1" android:fillColor="#e6ee9c"
android:pathData="M50,50 L30664.67,-73860.37A80000,80000 0,0 0,50 -79950Z"
android:strokeColor="#e6ee9c" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#fff59d"
android:pathData="m50,50 l56568.54,-56568.54a80000,80000 0,0 0,-25953.87 -17341.82z"
android:strokeColor="#fff59d" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffe082"
android:pathData="m50,50 l73910.37,-30614.67a80000,80000 0,0 0,-17341.82 -25953.87z"
android:strokeColor="#ffe082" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffcc80"
android:pathData="M50,50L80050,50A80000,80000 0,0 0,73960.37 -30564.67Z"
android:strokeColor="#ffcc80" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffab91"
android:pathData="M50,50 L73960.37,30664.67A80000,80000 0,0 0,80050 50Z"
android:strokeColor="#ffab91" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ef9a9a"
android:pathData="m50,50 l56568.54,56568.54a80000,80000 0,0 0,17341.82 -25953.87z"
android:strokeColor="#ef9a9a" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#f48fb1"
android:pathData="m50,50 l30614.67,73910.37a80000,80000 0,0 0,25953.87 -17341.82z"
android:strokeColor="#f48fb1" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ce93d8"
android:pathData="M50,50L50,80050A80000,80000 0,0 0,30664.67 73960.37Z"
android:strokeColor="#ce93d8" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#b39ddb"
android:pathData="M50,50 L-30564.67,73960.37A80000,80000 0,0 0,50 80050Z"
android:strokeColor="#b39ddb" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#9fa8da"
android:pathData="m50,50 l-56568.54,56568.54a80000,80000 0,0 0,25953.87 17341.82z"
android:strokeColor="#9fa8da" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#90caf9"
android:pathData="m50,50 l-73910.37,30614.67a80000,80000 0,0 0,17341.82 25953.87z"
android:strokeColor="#90caf9" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#81d4fa"
android:pathData="m50,50l-80000,0a80000,80000 0,0 0,6089.64 30614.67z"
android:strokeColor="#81d4fa" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80deea"
android:pathData="M50,50 L-73860.37,-30564.67A80000,80000 0,0 0,-79950 50Z"
android:strokeColor="#80deea" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80cbc4"
android:pathData="m50,50 l-56568.54,-56568.54a80000,80000 0,0 0,-17341.82 25953.87z"
android:strokeColor="#80cbc4" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#a5d6a7"
android:pathData="m50,50 l-30614.67,-73910.37a80000,80000 0,0 0,-25953.87 17341.82z"
android:strokeColor="#a5d6a7" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#c5e1a5"
android:pathData="m50,50l0,-80000a80000,80000 0,0 0,-30614.67 6089.64z"
android:strokeColor="#c5e1a5" android:strokeWidth="0"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<!--
*****************************************************
Background image for the main vpn screem
example: <item android:drawable="@drawable/mybackground" />
*****************************************************
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/background_main" />
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--Used to create the image to be shown in the donation popup-->
<!--
*****************************************************
Used to create the image to be shown in the donation popup
example: <item android:drawable="@drawable/mybackground" />
*****************************************************
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/background_main"
<item android:drawable="@drawable/logo_square"
android:gravity="fill_horizontal|fill_vertical"/>
<item android:drawable="@drawable/logo"
android:gravity="center"
/>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<!--
*****************************************************
Foreground logo for the drawer header
example: <item android:drawable="@drawable/mylogo" />
*****************************************************
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- <item android:drawable="@drawable/logo" /> -->
</layer-list>
\ No newline at end of file
......@@ -9,13 +9,13 @@
android:gravity="fill_horizontal|fill_vertical" />
<!--If a foreground image is not need remove this <item> tag-->
<item>
<!--<item> -->
<!--Replace custom/res/drawable/logo with foreground image-->
<!--Replace custom/res/drawable-ldpi/logo with foreground image-->
<!--Replace custom/res/drawable-xxxhdpi/logo with foreground image-->
<bitmap
<!--<bitmap
android:src="@drawable/logo"
android:gravity="center" />
</item>
android:gravity="center" /> -->
<!--</item>-->
</layer-list>
\ No newline at end of file
<vector android:height="24dp" android:viewportHeight="100.0"
android:viewportWidth="100.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:pathData="M50,50m-82000,0a82000,82000 0,1 1,164000 0a82000,82000 0,1 1,-164000 0"/>
<path android:fillAlpha="1" android:fillColor="#e6ee9c"
android:pathData="M50,50 L30664.67,-73860.37A80000,80000 0,0 0,50 -79950Z"
android:strokeColor="#e6ee9c" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#fff59d"
android:pathData="m50,50 l56568.54,-56568.54a80000,80000 0,0 0,-25953.87 -17341.82z"
android:strokeColor="#fff59d" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffe082"
android:pathData="m50,50 l73910.37,-30614.67a80000,80000 0,0 0,-17341.82 -25953.87z"
android:strokeColor="#ffe082" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffcc80"
android:pathData="M50,50L80050,50A80000,80000 0,0 0,73960.37 -30564.67Z"
android:strokeColor="#ffcc80" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffab91"
android:pathData="M50,50 L73960.37,30664.67A80000,80000 0,0 0,80050 50Z"
android:strokeColor="#ffab91" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ef9a9a"
android:pathData="m50,50 l56568.54,56568.54a80000,80000 0,0 0,17341.82 -25953.87z"
android:strokeColor="#ef9a9a" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#f48fb1"
android:pathData="m50,50 l30614.67,73910.37a80000,80000 0,0 0,25953.87 -17341.82z"
android:strokeColor="#f48fb1" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ce93d8"
android:pathData="M50,50L50,80050A80000,80000 0,0 0,30664.67 73960.37Z"
android:strokeColor="#ce93d8" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#b39ddb"
android:pathData="M50,50 L-30564.67,73960.37A80000,80000 0,0 0,50 80050Z"
android:strokeColor="#b39ddb" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#9fa8da"
android:pathData="m50,50 l-56568.54,56568.54a80000,80000 0,0 0,25953.87 17341.82z"
android:strokeColor="#9fa8da" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#90caf9"
android:pathData="m50,50 l-73910.37,30614.67a80000,80000 0,0 0,17341.82 25953.87z"
android:strokeColor="#90caf9" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#81d4fa"
android:pathData="m50,50l-80000,0a80000,80000 0,0 0,6089.64 30614.67z"
android:strokeColor="#81d4fa" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80deea"
android:pathData="M50,50 L-73860.37,-30564.67A80000,80000 0,0 0,-79950 50Z"
android:strokeColor="#80deea" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80cbc4"
android:pathData="m50,50 l-56568.54,-56568.54a80000,80000 0,0 0,-17341.82 25953.87z"
android:strokeColor="#80cbc4" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#a5d6a7"
android:pathData="m50,50 l-30614.67,-73910.37a80000,80000 0,0 0,-25953.87 17341.82z"
android:strokeColor="#a5d6a7" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#c5e1a5"
android:pathData="m50,50l0,-80000a80000,80000 0,0 0,-30614.67 6089.64z"
android:strokeColor="#c5e1a5" android:strokeWidth="0"/>
</vector>
<vector android:height="24dp" android:viewportHeight="100.0"
android:viewportWidth="100.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:pathData="M50,50m-82000,0a82000,82000 0,1 1,164000 0a82000,82000 0,1 1,-164000 0"/>
<path android:fillAlpha="1" android:fillColor="#e6ee9c"
android:pathData="M50,50 L30664.67,-73860.37A80000,80000 0,0 0,50 -79950Z"
android:strokeColor="#e6ee9c" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#fff59d"
android:pathData="m50,50 l56568.54,-56568.54a80000,80000 0,0 0,-25953.87 -17341.82z"
android:strokeColor="#fff59d" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffe082"
android:pathData="m50,50 l73910.37,-30614.67a80000,80000 0,0 0,-17341.82 -25953.87z"
android:strokeColor="#ffe082" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffcc80"
android:pathData="M50,50L80050,50A80000,80000 0,0 0,73960.37 -30564.67Z"
android:strokeColor="#ffcc80" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ffab91"
android:pathData="M50,50 L73960.37,30664.67A80000,80000 0,0 0,80050 50Z"
android:strokeColor="#ffab91" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ef9a9a"
android:pathData="m50,50 l56568.54,56568.54a80000,80000 0,0 0,17341.82 -25953.87z"
android:strokeColor="#ef9a9a" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#f48fb1"
android:pathData="m50,50 l30614.67,73910.37a80000,80000 0,0 0,25953.87 -17341.82z"
android:strokeColor="#f48fb1" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#ce93d8"
android:pathData="M50,50L50,80050A80000,80000 0,0 0,30664.67 73960.37Z"
android:strokeColor="#ce93d8" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#b39ddb"
android:pathData="M50,50 L-30564.67,73960.37A80000,80000 0,0 0,50 80050Z"
android:strokeColor="#b39ddb" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#9fa8da"
android:pathData="m50,50 l-56568.54,56568.54a80000,80000 0,0 0,25953.87 17341.82z"
android:strokeColor="#9fa8da" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#90caf9"
android:pathData="m50,50 l-73910.37,30614.67a80000,80000 0,0 0,17341.82 25953.87z"
android:strokeColor="#90caf9" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#81d4fa"
android:pathData="m50,50l-80000,0a80000,80000 0,0 0,6089.64 30614.67z"
android:strokeColor="#81d4fa" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80deea"
android:pathData="M50,50 L-73860.37,-30564.67A80000,80000 0,0 0,-79950 50Z"
android:strokeColor="#80deea" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#80cbc4"
android:pathData="m50,50 l-56568.54,-56568.54a80000,80000 0,0 0,-17341.82 25953.87z"
android:strokeColor="#80cbc4" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#a5d6a7"
android:pathData="m50,50 l-30614.67,-73910.37a80000,80000 0,0 0,-25953.87 17341.82z"
android:strokeColor="#a5d6a7" android:strokeWidth="0"/>
<path android:fillAlpha="1" android:fillColor="#c5e1a5"
android:pathData="m50,50l0,-80000a80000,80000 0,0 0,-30614.67 6089.64z"
android:strokeColor="#c5e1a5" android:strokeWidth="0"/>
</vector>
......@@ -38,20 +38,12 @@
android:innerRadius="0dp"
android:shape="ring"
app:cardCornerRadius="60dp">
<FrameLayout
<ImageView
android:id="@+id/donation_logo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_main"
>
<ImageView
android:id="@+id/ivImg"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:scaleType="centerInside"
android:layout_marginBottom="@dimen/add_button_margin"
android:layout_marginTop="@dimen/add_button_margin"
android:src="@drawable/logo" />
</FrameLayout>
android:scaleType="centerCrop"
android:src="@drawable/donation_img" />
</android.support.v7.widget.CardView>
......
......@@ -11,7 +11,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="150dp">
<android.support.v7.widget.AppCompatImageView
android:id="@+id/background"
......@@ -23,10 +23,11 @@
app:srcCompat="@drawable/background_drawer" />
<android.support.v7.widget.AppCompatImageView
android:id="@+id/mask"
android:id="@+id/foreground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/logo" />
android:layout_height="match_parent"
android:scaleType="centerInside"
app:srcCompat="@drawable/drawer_logo" />
</FrameLayout>
<RelativeLayout
android:layout_width="match_parent"
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/background_main"
android:gravity="fill_horizontal|fill_vertical"/>
<item
android:top="50dp"
android:bottom="50dp"
android:left="50dp"
android:right="50dp"
>
<bitmap
android:src="@drawable/logo"
android:gravity="center" />
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
*****************************************************
Foreground logo for the drawer header
example: <item android:drawable="@drawable/mylogo" />
*****************************************************
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/logo" />
</layer-list>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment