blob: 1e51f7579c37488b67a9e1f1b13c750ebac57ad1 [file] [log] [blame]
mariagpuyol16face32016-02-12 09:58:27 -08001<?xml version="1.0" encoding="utf-8"?>
mariagpuyolea078ed2016-03-07 20:02:10 -08002<!-- Copyright (C) 2016 The Android Open Source Project
mariagpuyol16face32016-02-12 09:58:27 -08003
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
Akshay Kannancdb6c142016-01-20 18:25:44 -080016<resources>
Juan Lang432ad362017-05-04 16:20:22 -070017 <style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Settings">
Andrew Sappersteine9399242016-05-29 13:54:30 -070018 <item name="colorPrimaryDark">@color/primary_dark_color</item>
mariagpuyol7c2d1272017-02-08 10:19:38 -080019 <item name="android:windowLightStatusBar">true</item>
Andrew Sappersteine9399242016-05-29 13:54:30 -070020 <item name="tabIndicatorColor">@color/accent_color_dark</item>
Fan Zhangfc98f602017-01-19 14:47:09 -080021 <item name="textColorActionBar">?android:attr/textColorPrimary</item>
Juan Lang2c0518a2017-05-10 17:00:32 -070022 <item name="preferenceTheme">@style/PreferenceTheme</item>
Akshay Kannancdb6c142016-01-20 18:25:44 -080023 </style>
Fan Zhangfc98f602017-01-19 14:47:09 -080024
mariagpuyolab50ae12016-03-07 10:37:35 -080025 <!-- Base emergency theme. -->
mariagpuyol9be32652016-03-16 12:34:53 -070026 <style name="AppThemeEmergency" parent="Theme.AppCompat.Light.NoActionBar">
mariagpuyold7a41502016-03-11 21:40:10 -080027 <item name="android:preferenceCategoryStyle">@style/AppTheme.PreferenceCategoryStyle</item>
mariagpuyolab50ae12016-03-07 10:37:35 -080028 <item name="colorPrimaryDark">@color/emergency_primary_dark</item>
29 <item name="colorPrimary">@color/emergency_primary</item>
Fan Zhang0739fbb2017-01-04 11:38:22 -080030 <item name="textColorActionBar">@color/tab_text_color</item>
mariagpuyoldff26b82016-06-02 11:30:12 -070031 <item name="tabIndicatorColor">@color/emergency_accent</item>
Juan Lang2c0518a2017-05-10 17:00:32 -070032 <item name="preferenceTheme">@style/PreferenceTheme</item>
Akshay Kannancdb6c142016-01-20 18:25:44 -080033 </style>
mariagpuyolea078ed2016-03-07 20:02:10 -080034
Andrew Sappersteine9399242016-05-29 13:54:30 -070035 <!-- ActionBar -->
Fan Zhang0739fbb2017-01-04 11:38:22 -080036 <style name="ActionBarThemeOverlay" parent="ThemeOverlay.AppCompat.ActionBar">
Andrew Sappersteine9399242016-05-29 13:54:30 -070037 <item name="colorAccent">@color/accent_color_dark</item>
Fan Zhang0739fbb2017-01-04 11:38:22 -080038 <item name="colorControlNormal">?attr/textColorActionBar</item>
Andrew Sappersteine9399242016-05-29 13:54:30 -070039 </style>
40
mariagpuyol9be32652016-03-16 12:34:53 -070041 <!-- Tabs -->
mariagpuyolea078ed2016-03-07 20:02:10 -080042 <style name="AppTheme.TabLayout" parent="Widget.Design.TabLayout">
43 <item name="tabTextAppearance">@style/AppTheme.TabText</item>
Fan Zhang0739fbb2017-01-04 11:38:22 -080044 <item name="tabSelectedTextColor">?attr/textColorActionBar</item>
mariagpuyoldff26b82016-06-02 11:30:12 -070045 <item name="tabIndicatorColor">?attr/tabIndicatorColor</item>
mariagpuyol9be32652016-03-16 12:34:53 -070046 <item name="tabIndicatorHeight">2dp</item>
47 <item name="tabPaddingStart">24dp</item>
48 <item name="tabPaddingEnd">24dp</item>
49 <item name="tabMode">scrollable</item>
mariagpuyolea078ed2016-03-07 20:02:10 -080050 </style>
51
mariagpuyol91095782016-03-24 17:52:28 -070052 <style name="AppTheme.TabText" parent="TextAppearance.Design.Tab">
Fan Zhang0739fbb2017-01-04 11:38:22 -080053 <item name="android:textColor">?attr/textColorActionBar</item>
mariagpuyol0f7b2ee2016-03-29 18:58:00 -070054 <item name="android:textSize">14sp</item>
mariagpuyolea078ed2016-03-07 20:02:10 -080055 </style>
56
57 <!-- Preferences -->
58 <style name="AppTheme.PreferenceCategoryStyle" parent="Preference.Category">
59 <item name="android:layout">@layout/custom_preference_category_layout</item>
60 </style>
Juan Lang2c0518a2017-05-10 17:00:32 -070061
Juan Langc12698e2018-01-12 09:55:47 -080062 <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
63 <!-- Parent path frameworks/support/SettingsLib/res/values/themes.xml -->
Juan Lang1325ec62017-06-13 10:10:53 -070064 <item name="footerPreferenceStyle">@style/FooterPreference</item>
65 </style>
66
67 <style name="FooterPreference" parent="PreferenceTheme">
68 <item name="android:layout">@layout/preference_footer</item>
69 <item name="allowDividerAbove">true</item>
Juan Lang2c0518a2017-05-10 17:00:32 -070070 </style>
Juan Langaadd22b2017-06-22 14:31:57 -070071
Juan Langc12698e2018-01-12 09:55:47 -080072 <style name="NameAutoCompletePreference" parent="PreferenceTheme">
73 <item name="android:positiveButtonText">@android:string/ok</item>
74 <item name="android:negativeButtonText">@android:string/cancel</item>
Juan Langaadd22b2017-06-22 14:31:57 -070075 </style>
Akshay Kannancdb6c142016-01-20 18:25:44 -080076</resources>