diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-11 11:27:32 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-11 11:27:32 +0200 |
commit | 8444b148ad40e73d3a0fe07724d369e18eeb751d (patch) | |
tree | b6cccc449772723f2e1f81e9c1da70921980fd3b /app/src | |
parent | cc024ad84e29b9dac837ef9ee2fc45125f47c463 (diff) |
add minor elevation to vpn start/stop button
Diffstat (limited to 'app/src')
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 |