diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2016-06-20 12:48:22 -0700 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2016-06-30 14:17:19 -0700 |
commit | 5f7750d75c83b13facf57988e1f042ce8af9abd6 (patch) | |
tree | b5ae3fe17a2ce8de81bf56ff33ffeb4d0af17573 /res/values-v25 | |
parent | 26def23702881867208bfc465af27a4f9afc26f6 (diff) | |
download | android_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-v25')
-rw-r--r-- | res/values-v25/styles.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/res/values-v25/styles.xml b/res/values-v25/styles.xml new file mode 100644 index 000000000..ed670a9d3 --- /dev/null +++ b/res/values-v25/styles.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +* Copyright (C) 2016 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +--> +<resources> + <!-- Theme for the widget container. --> + <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings"> + <item name="colorSecondary">?android:attr/colorSecondary</item> + </style> +</resources> |