summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-06-05 22:18:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-05 22:18:45 +0000
commit0c004bbf7c8c10347751f95cd07bb196cc07c877 (patch)
tree2363088a87b236b717a5a557fcf1b5b5da304297
parenta83a532dde44341319810958d67aabb02ff7aea6 (diff)
parent5031f14a4e843ef775ed231c17acd97e75d65e7e (diff)
downloadpackages_apps_Settings-0c004bbf7c8c10347751f95cd07bb196cc07c877.tar.gz
packages_apps_Settings-0c004bbf7c8c10347751f95cd07bb196cc07c877.tar.bz2
packages_apps_Settings-0c004bbf7c8c10347751f95cd07bb196cc07c877.zip
Merge "Fix account header colors" into lmp-preview-dev
-rw-r--r--res/values/colors.xml6
-rw-r--r--res/values/themes.xml43
2 files changed, 31 insertions, 18 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml
index a0c560147..c58dffc89 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -64,7 +64,11 @@
<color name="quantum_accent_color_dark">#FF80CBC4</color>
<color name="quantum_empty_color_light">#FFCED7DB</color>
- <color name="actionbar_background_color">#ff263238</color>
+ <!-- Palette colors referenced by top-level themes and manually copied into base theme. -->
+ <color name="theme_primary">#ff263238</color>
+ <color name="theme_primary_dark">@color/theme_primary</color>
+ <color name="theme_accent">@color/quantum_accent_color_light</color>
+
<color name="dashboard_background_color">#ffe1e1e0</color>
<color name="switchbar_background_color">#ff384248</color>
<color name="switch_accent_color">#ff7fcac3</color>
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 41091e7db..246e253eb 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -59,8 +59,18 @@
<item name="wifi_signal">@drawable/wifi_signal_light</item>
</style>
- <!-- Theme with no local references, used by AccountPreferenceBase. -->
- <style name="Theme.SettingsBase" parent="@android:style/Theme.Quantum.Light.DarkActionBar" />
+ <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate
+ layouts against a remote context using our local theme colors. Due to the implementation
+ details of Theme, we can't reference any local resources and MUST instead use the values
+ directly. So use #ff263238 instead of @color/theme_primary and so on. -->
+ <style name="Theme.SettingsBase" parent="@android:style/Theme.Quantum.Light.DarkActionBar">
+ <!-- Should match @color/theme_primary. -->
+ <item name="android:colorPrimary">#ff263238</item>
+ <!-- Should match @color/theme_primary_dark. -->
+ <item name="android:colorPrimaryDark">#ff263238</item>
+ <!-- Should match @color/theme_accent. -->
+ <item name="android:colorAccent">#ff009688</item>
+ </style>
<style name="Theme.Settings" parent="Theme.SettingsBase">
<item name="@*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
@@ -74,11 +84,6 @@
<item name="ic_wps">@drawable/ic_wps_dark</item>
<item name="wifi_signal">@drawable/wifi_signal_dark</item>
- <item name="android:colorPrimary">@color/actionbar_background_color</item>
- <!-- Used by the StatusBar and NavBar -->
- <item name="android:colorPrimaryDark">@color/actionbar_background_color</item>
- <!-- Redefine control activited color for progress bars and the like -->
- <item name="android:colorAccent">@color/quantum_accent_color_light</item>
<!-- Redefine the ActionBar style for contentInsetStart -->
<item name="android:actionBarStyle">@style/Theme.ActionBar</item>
@@ -96,11 +101,13 @@
</style>
<style name="Theme.DialogWhenLarge" parent="android:style/Theme.Quantum.Light.DialogWhenLarge">
- <item name="android:colorPrimary">@color/actionbar_background_color</item>
- <!-- Used by the StatusBar and NavBar -->
- <item name="android:colorPrimaryDark">@color/actionbar_background_color</item>
- <!-- Redefine control activited color for progress bars and the like -->
- <item name="android:colorAccent">@color/quantum_accent_color_light</item>
+ <!-- Used by the ActionBar -->
+ <item name="android:colorPrimary">@color/theme_primary</item>
+ <!-- Used by the StatusBar -->
+ <item name="android:colorPrimaryDark">@color/theme_primary_dark</item>
+ <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. -->
+ <item name="android:colorAccent">@color/theme_accent</item>
+
<!-- Redefine the ActionBar style for contentInsetStart -->
<item name="android:actionBarStyle">@style/Theme.ActionBar</item>
</style>
@@ -113,11 +120,13 @@
<style name="Theme.AlertDialog" parent="@*android:style/Theme.Quantum.Light.Dialog.Alert">
<item name="android:windowSoftInputMode">adjustResize</item>
- <item name="android:colorPrimary">@color/actionbar_background_color</item>
- <!-- Used by the StatusBar and NavBar -->
- <item name="android:colorPrimaryDark">@color/actionbar_background_color</item>
- <!-- Redefine control activited color for progress bars and the like -->
- <item name="android:colorAccent">@color/quantum_accent_color_light</item>
+ <!-- Used by the ActionBar -->
+ <item name="android:colorPrimary">@color/theme_primary</item>
+ <!-- Used by the StatusBar -->
+ <item name="android:colorPrimaryDark">@color/theme_primary_dark</item>
+ <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. -->
+ <item name="android:colorAccent">@color/theme_accent</item>
+
<!-- Redefine the ActionBar style for contentInsetStart -->
<item name="android:actionBarStyle">@style/Theme.ActionBar</item>
</style>