blob: 710871a6007c23f1356ad66d08ec6a5f9e189ab1 [file] [log] [blame]
Steve Kondik66dbbd52016-09-03 05:15:27 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
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-->
16
17<resources>
Steve Kondik03b56502016-09-10 17:17:25 -070018 <attr name="side_margin" format="reference|dimension" />
19 <attr name="wifi_signal_color" format="reference" />
20
21 <style name="PreferenceTheme" parent="@android:style/Theme.DeviceDefault.Settings">
Steve Kondikf0964652016-09-19 23:01:42 -070022 <item name="preferenceStyle">@style/Preference</item>
23 <item name="editTextPreferenceStyle">@style/EditTextPreference</item>
24 <item name="dropdownPreferenceStyle">@style/Preference.DropDown.Material</item>
25 <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item>
Steve Kondik03b56502016-09-10 17:17:25 -070026 </style>
27
28 <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate
29 layouts against a remote context using our local theme colors. Due to the implementation
30 details of Theme, we can't reference any local resources and MUST instead use the values
31 directly. So use #ff263238 instead of @color/theme_primary and so on. -->
32 <style name="Theme.SettingsBase" parent="@android:style/Theme.Material.Settings" />
33
34 <style name="Theme.Settings" parent="Theme.SettingsBase">
35 <item name="preferenceTheme">@style/PreferenceTheme</item>
Steve Kondikf0964652016-09-19 23:01:42 -070036 <item name="preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
37 <item name="preferencePanelStyle">@style/PreferencePanelSinglePane</item>
38 <item name="preferenceListStyle">@style/PreferenceHeaderListSinglePane</item>
39 <item name="preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item>
40 <item name="preferenceFragmentPaddingSide">@dimen/settings_side_margin</item>
Steve Kondik03b56502016-09-10 17:17:25 -070041
42 <item name="wifi_signal_color">?android:attr/colorAccent</item>
43 <item name="side_margin">@dimen/settings_side_margin</item>
44
45 <!-- Redefine the ActionBar style for contentInsetStart -->
46 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
Steve Kondikf0964652016-09-19 23:01:42 -070047 <item name="android:actionBarSize">@dimen/actionbar_size</item>
Steve Kondik03b56502016-09-10 17:17:25 -070048
49 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
50
51 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
52
53 <!-- For all Alert Dialogs -->
Steve Kondikf0964652016-09-19 23:01:42 -070054 <item name="alertDialogTheme">@style/Theme.AlertDialog</item>
Steve Kondik03b56502016-09-10 17:17:25 -070055 </style>
56
57 <style name="Theme.SubSettings" parent="Theme.Settings">
58 <!-- Redefine the ActionBar style for contentInsetStart -->
Steve Kondikf0964652016-09-19 23:01:42 -070059 <item name="actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
Steve Kondik03b56502016-09-10 17:17:25 -070060
61 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item>
62 </style>
63
Steve Kondik27cfe782016-09-06 04:33:28 -070064 <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid">
Steve Kondikf0964652016-09-19 23:01:42 -070065 <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item>
Steve Kondik27cfe782016-09-06 04:33:28 -070066 </style>
67
Steve Kondik03b56502016-09-10 17:17:25 -070068 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar">
Steve Kondikf0964652016-09-19 23:01:42 -070069 <item name="contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item>
Steve Kondik03b56502016-09-10 17:17:25 -070070 </style>
71
72 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar">
73 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
74 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
75 <item name="switchBarBackgroundColor">@color/switchbar_background_color</item>
76 </style>
77
78 <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar">
79 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
80 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
81 <item name="switchBarBackgroundColor">@color/switchbar_background_color</item>
82 </style>
83
84 <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge">
85 <!-- Redefine the ActionBar style for contentInsetStart -->
Steve Kondikf0964652016-09-19 23:01:42 -070086 <item name="actionBarStyle">@style/Theme.ActionBar</item>
Steve Kondik03b56502016-09-10 17:17:25 -070087
88 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
89 </style>
90
91 <style name="Theme.SubSettingsDialogWhenLarge" parent="Theme.DialogWhenLarge">
92 <item name="preferenceTheme">@style/PreferenceTheme</item>
Steve Kondikf0964652016-09-19 23:01:42 -070093 <item name="actionBarWidgetTheme">@null</item>
94 <item name="actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item>
Steve Kondik03b56502016-09-10 17:17:25 -070095
96 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
97 </style>
98
Steve Kondik27cfe782016-09-06 04:33:28 -070099 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
100 <item name="android:windowSoftInputMode">adjustResize</item>
101 </style>
102
103 <style name="Theme.AlertDialog" parent="@*android:style/Theme.Material.Settings.Dialog.Alert">
104 <item name="android:windowSoftInputMode">adjustResize</item>
105
106 <!-- Redefine the ActionBar style for contentInsetStart -->
107 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
108 </style>
109
Steve Kondik03b56502016-09-10 17:17:25 -0700110 <!-- Used to color the switch bar controls -->
111 <style name="ThemeOverlay.SwitchBar" parent="@android:style/ThemeOverlay">
112 <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. -->
113 <item name="android:colorAccent">@color/switch_accent_color</item>
114 <item name="switchBarBackgroundColor">@color/switchbar_background_color</item>
Steve Kondik27cfe782016-09-06 04:33:28 -0700115 </style>
116
Steve Kondik66dbbd52016-09-03 05:15:27 -0700117</resources>