summaryrefslogtreecommitdiffstats
path: root/res/values/styles.xml
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2016-06-20 12:48:22 -0700
committerAndrew Sapperstein <asapperstein@google.com>2016-06-30 14:17:19 -0700
commit5f7750d75c83b13facf57988e1f042ce8af9abd6 (patch)
treeb5ae3fe17a2ce8de81bf56ff33ffeb4d0af17573 /res/values/styles.xml
parent26def23702881867208bfc465af27a4f9afc26f6 (diff)
downloadandroid_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.tar.gz
android_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.tar.bz2
android_packages_apps_Trebuchet-5f7750d75c83b13facf57988e1f042ce8af9abd6.zip
Use colorSecondary for darker bg color.
Used for widget headers and a few other places. In order to support pre-API 25, an app-local version of colorSecondary is created and used throughout the app. A new WidgetContainerTheme sets colorSecondary to a canned value. On API 25+, colorSecondary is set to the platform value. Change-Id: Ie0dd66333052b7346eea5d82d1c88417c6a2cd00 Fixes: 28625102
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r--res/values/styles.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 0bfd0a041..8ea772b9f 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -30,12 +30,19 @@
<style name="Theme" parent="@style/LauncherTheme"></style>
+ <!-- Theme for the widget container. Overridden on API 25. -->
+ <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
+ <item name="colorSecondary">@color/fallback_secondary_color</item>
+ </style>
+
<!-- Overscroll effect -->
+ <style name="CustomOverscroll" />
+
<style name="CustomOverscroll.Light" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:colorEdgeEffect">@color/folder_edge_effect_color</item>
</style>
- <style name="CustomOverscroll.Dark" parent="@android:style/Theme.DeviceDefault">
+ <style name="CustomOverscroll.Dark">
<item name="android:colorEdgeEffect">@color/workspace_edge_effect_color</item>
</style>