diff options
author | Harsh Shandilya <harsh@prjkt.io> | 2018-05-03 23:41:37 +0530 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-05-05 10:08:24 -0500 |
commit | add6959914d4f5e94f03f6429f583c251aab347e (patch) | |
tree | 044bd8f7c5e470c3568b83b88854d457e0b3cb66 /app/src/main | |
parent | 2602e1e87726f5a21cd61f5d78f4c7946b723ac5 (diff) |
styles: Propagate WireGuard red in UI
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/res/layout/tunnel_list_fragment.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml index 5d6a5ce9..3dc7fa0c 100644 --- a/app/src/main/res/layout/tunnel_list_fragment.xml +++ b/app/src/main/res/layout/tunnel_list_fragment.xml @@ -35,6 +35,8 @@ android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="8dp" + app:fab_addButtonColorNormal="@color/wireguard_brand_red" + app:fab_addButtonColorPressed="@color/wireguard_brand_red" app:fab_labelStyle="@style/fab_label" app:fab_labelsPosition="left" app:layout_dodgeInsetEdges="bottom"> @@ -44,6 +46,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="@{fragment::onRequestCreateConfig}" + app:fab_colorNormal="@color/wireguard_brand_red" + app:fab_colorPressed="@color/wireguard_brand_red" app:fab_icon="@drawable/ic_action_edit" app:fab_size="mini" app:fab_title="@string/create_empty" /> @@ -53,6 +57,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="@{fragment::onRequestImportConfig}" + app:fab_colorNormal="@color/wireguard_brand_red" + app:fab_colorPressed="@color/wireguard_brand_red" app:fab_icon="@drawable/ic_action_open" app:fab_size="mini" app:fab_title="@string/create_from_file" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 47a2d2b4..5a6ee17f 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -2,4 +2,5 @@ <resources> <color name="list_item_activated">#cfd8dc</color> <!-- Blue Grey 200 --> <color name="list_item_ripple">#808e95</color> <!-- Blue Grey 200 dark --> + <color name="wireguard_brand_red">#871719</color> </resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 1fda6aa6..ae6d0574 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,7 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> - <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar" /> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <item name="colorAccent">@color/wireguard_brand_red</item> + </style> <style name="SettingsTheme" parent="AppTheme"> <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> |