From 7a77a8b2a43ed3a7a8ba3cd2623e4dfdbdcf6e23 Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Sun, 10 Aug 2014 16:22:59 -0700 Subject: [PATCH] [WifiSetup] Fix colors during setup Fixed background color for dark theme, Wi-Fi icon color for light and dark themes, "Add another network" button color for light and dark themes. Created wifi_signal_colored which uses wifi_signal_color to tint the Wi-Fi icon. Also fixed theme extra propagation. Bug: 16903606 Change-Id: Iab24828f888d7827184762d0d63d139d0a2c381e --- res/drawable/wifi_signal_colored.xml | 68 +++++++++++++++++++ res/layout/wifi_assistant_card.xml | 2 +- res/values/colors.xml | 11 ++- res/values/styles.xml | 4 +- res/values/themes.xml | 13 ++-- .../settings/wifi/WifiSetupActivity.java | 1 + 6 files changed, 90 insertions(+), 9 deletions(-) create mode 100644 res/drawable/wifi_signal_colored.xml diff --git a/res/drawable/wifi_signal_colored.xml b/res/drawable/wifi_signal_colored.xml new file mode 100644 index 00000000000..4eb41c0623c --- /dev/null +++ b/res/drawable/wifi_signal_colored.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wifi_assistant_card.xml b/res/layout/wifi_assistant_card.xml index 529f9e91f32..7c9af17c76b 100644 --- a/res/layout/wifi_assistant_card.xml +++ b/res/layout/wifi_assistant_card.xml @@ -32,7 +32,7 @@ @android:color/holo_blue_light #33ffffff #33000000 - #ff009587 - #ff009587 + #ff00e4ff + #ff00828e + #ff00e4ff + #ff0096a6 + + #ff009587 #ffffffff #80000000 @@ -73,6 +77,9 @@ @color/default_preference_background_color @color/default_preference_background_color + @*android:color/background_material_dark + @*android:color/background_material_light + #ffe91e63 #ff3f51b5 diff --git a/res/values/styles.xml b/res/values/styles.xml index 566748af44c..1b08e0fc622 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -192,7 +192,7 @@ @dimen/setup_list_no_icon_padding true @android:style/TextAppearance.Small - @color/setup_add_wifi_network_text_color + ?android:attr/colorAccent diff --git a/res/values/themes.xml b/res/values/themes.xml index ed743086fea..aa463410b9c 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -19,10 +19,12 @@ +