blob: 1920e55eb16ea42f622d4684611a2830a427d8d7 [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">
22 <item name="@android:preferenceStyle">@style/Preference</item>
23 <item name="@android:editTextPreferenceStyle">@style/EditTextPreference</item>
24 <item name="@dropdownPreferenceStyle">@style/Preference.DropDown.Material</item>
25 <item name="@android:preferenceFragmentStyle">@style/PreferenceFragmentStyle</item>
26 </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>
36 <item name="@*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
37 <item name="@*android:preferencePanelStyle">@style/PreferencePanelSinglePane</item>
38 <item name="@*android:preferenceListStyle">@style/PreferenceHeaderListSinglePane</item>
39 <item name="@*android:preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item>
40 <item name="@*android:preferenceFragmentPaddingSide">@dimen/settings_side_margin</item>
41
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>
47 <item name="@*android:actionBarSize">@dimen/actionbar_size</item>
48
49 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
50
51 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
52
53 <!-- For all Alert Dialogs -->
54 <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item>
55 </style>
56
57 <style name="Theme.SubSettings" parent="Theme.Settings">
58 <!-- Redefine the ActionBar style for contentInsetStart -->
59 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
60
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">
65 <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
66 </style>
67
Steve Kondik03b56502016-09-10 17:17:25 -070068 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar">
69 <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item>
70 </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 -->
86 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
87
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>
93 <item name="android:actionBarWidgetTheme">@null</item>
94 <item name="android:actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item>
95
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>