summaryrefslogtreecommitdiffstats
path: root/res/layout
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/layout
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/layout')
-rw-r--r--res/layout/widgets_list_row_view.xml2
-rw-r--r--res/layout/widgets_view.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/layout/widgets_list_row_view.xml b/res/layout/widgets_list_row_view.xml
index c0219b96f..4687b3891 100644
--- a/res/layout/widgets_list_row_view.xml
+++ b/res/layout/widgets_list_row_view.xml
@@ -30,7 +30,7 @@
android:id="@+id/section"
android:layout_width="match_parent"
android:layout_height="@dimen/widget_section_height"
- android:background="@color/quantum_panel_bg_color_dark"
+ android:background="?attr/colorSecondary"
android:drawablePadding="@dimen/widget_section_horizontal_padding"
android:ellipsize="end"
android:focusable="true"
diff --git a/res/layout/widgets_view.xml b/res/layout/widgets_view.xml
index e9bbd37da..74f7ca10b 100644
--- a/res/layout/widgets_view.xml
+++ b/res/layout/widgets_view.xml
@@ -26,7 +26,7 @@
android:paddingBottom="@dimen/container_bounds_inset"
android:descendantFocusability="afterDescendants"
launcher:revealBackground="@drawable/quantum_panel_shape_dark"
- android:theme="@android:style/Theme.DeviceDefault.Settings">
+ android:theme="@style/WidgetContainerTheme">
<View
android:id="@+id/reveal_view"