summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-07-11 11:27:32 +0200
committercyBerta <cyberta@riseup.net>2019-07-11 11:27:32 +0200
commit8444b148ad40e73d3a0fe07724d369e18eeb751d (patch)
treeb6cccc449772723f2e1f81e9c1da70921980fd3b /app/src
parentcc024ad84e29b9dac837ef9ee2fc45125f47c463 (diff)
add minor elevation to vpn start/stop button
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/drawable/cust_button_primary_black.xml18
-rw-r--r--app/src/main/res/drawable/cust_button_primary_black_pressed.xml8
-rw-r--r--app/src/main/res/drawable/cust_button_primary_black_released.xml17
3 files changed, 27 insertions, 16 deletions
diff --git a/app/src/main/res/drawable/cust_button_primary_black.xml b/app/src/main/res/drawable/cust_button_primary_black.xml
index fc42dbc5..d43237a1 100644
--- a/app/src/main/res/drawable/cust_button_primary_black.xml
+++ b/app/src/main/res/drawable/cust_button_primary_black.xml
@@ -1,18 +1,4 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true">
- <shape android:shape="rectangle">
- <corners android:radius="16dp"/>
- <solid android:color="@color/black800_secondary"/>
- </shape>
- </item>
-
- <item>
- <shape android:shape="rectangle">
- <corners android:radius="16dp"/>
- <solid android:color="@color/black800"/>
- </shape>
- </item>
-
-
-
+ <item android:state_pressed="true" android:drawable="@drawable/cust_button_primary_black_pressed"/>
+ <item android:drawable="@drawable/cust_button_primary_black_released"/>
</selector> \ No newline at end of file
diff --git a/app/src/main/res/drawable/cust_button_primary_black_pressed.xml b/app/src/main/res/drawable/cust_button_primary_black_pressed.xml
new file mode 100644
index 00000000..38c0aa36
--- /dev/null
+++ b/app/src/main/res/drawable/cust_button_primary_black_pressed.xml
@@ -0,0 +1,8 @@
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <corners android:radius="16dp"/>
+ <solid android:color="@color/black800_secondary"/>
+ </shape>
+ </item>
+</layer-list> \ No newline at end of file
diff --git a/app/src/main/res/drawable/cust_button_primary_black_released.xml b/app/src/main/res/drawable/cust_button_primary_black_released.xml
new file mode 100644
index 00000000..578e0424
--- /dev/null
+++ b/app/src/main/res/drawable/cust_button_primary_black_released.xml
@@ -0,0 +1,17 @@
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <corners android:radius="16dp"/>
+ <solid android:color="@color/black800_transparent"/>
+ </shape>
+ </item>
+
+ <item
+ android:bottom="@dimen/button_bevel"
+ >
+ <shape android:shape="rectangle">
+ <corners android:radius="16dp"/>
+ <solid android:color="@color/black800"/>
+ </shape>
+ </item>
+</layer-list> \ No newline at end of file