blob: 6f9e97cb0836ee6d7a38d219519d02670a1be709 [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
Steve Kondik03b56502016-09-10 17:17:25 -070021 <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate
22 layouts against a remote context using our local theme colors. Due to the implementation
23 details of Theme, we can't reference any local resources and MUST instead use the values
24 directly. So use #ff263238 instead of @color/theme_primary and so on. -->
Ethan Chen10906822017-10-06 00:15:00 -070025 <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" />
Steve Kondik03b56502016-09-10 17:17:25 -070026
27 <style name="Theme.Settings" parent="Theme.SettingsBase">
Ethan Chen10906822017-10-06 00:15:00 -070028 <item name="dialogPreferenceStyle">@style/DialogPreferenceStyle</item>
Bruno Martinsb1b25572018-01-22 00:22:54 +000029 <item name="dropdownPreferenceStyle">@style/DropdownPreferenceStyle</item>
Ethan Chen10906822017-10-06 00:15:00 -070030 <item name="editTextPreferenceStyle">@style/EditTextPreference</item>
31 <item name="preferenceCategoryStyle">@style/PreferenceCategoryStyle</item>
32 <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item>
33 <item name="preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item>
34 <item name="preferenceFragmentPaddingSide">@dimen/settings_side_margin</item>
Steve Kondikf0964652016-09-19 23:01:42 -070035 <item name="preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
36 <item name="preferencePanelStyle">@style/PreferencePanelSinglePane</item>
37 <item name="preferenceListStyle">@style/PreferenceHeaderListSinglePane</item>
Ethan Chen10906822017-10-06 00:15:00 -070038 <item name="preferenceScreenStyle">@style/PreferenceStyle</item>
39 <item name="preferenceStyle">@style/PreferenceStyle</item>
40 <item name="preferenceTheme">@style/PreferenceTheme</item>
LuK13379247d262017-12-18 14:20:04 +010041 <item name="checkBoxPreferenceStyle">@style/CheckBoxPreferenceStyle</item>
Ethan Chen10906822017-10-06 00:15:00 -070042 <item name="switchPreferenceStyle">@style/SwitchPreferenceStyle</item>
Steve Kondik03b56502016-09-10 17:17:25 -070043
44 <item name="wifi_signal_color">?android:attr/colorAccent</item>
45 <item name="side_margin">@dimen/settings_side_margin</item>
46
47 <!-- Redefine the ActionBar style for contentInsetStart -->
48 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
Steve Kondikf0964652016-09-19 23:01:42 -070049 <item name="android:actionBarSize">@dimen/actionbar_size</item>
Steve Kondik03b56502016-09-10 17:17:25 -070050
51 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
52
53 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
54
55 <!-- For all Alert Dialogs -->
Steve Kondikf0964652016-09-19 23:01:42 -070056 <item name="alertDialogTheme">@style/Theme.AlertDialog</item>
Steve Kondik03b56502016-09-10 17:17:25 -070057 </style>
58
59 <style name="Theme.SubSettings" parent="Theme.Settings">
60 <!-- Redefine the ActionBar style for contentInsetStart -->
Steve Kondikf0964652016-09-19 23:01:42 -070061 <item name="actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
Steve Kondik03b56502016-09-10 17:17:25 -070062
63 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item>
64 </style>
65
Steve Kondik27cfe782016-09-06 04:33:28 -070066 <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid">
Steve Kondikf0964652016-09-19 23:01:42 -070067 <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item>
Steve Kondik27cfe782016-09-06 04:33:28 -070068 </style>
69
Steve Kondik03b56502016-09-10 17:17:25 -070070 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar">
Steve Kondikf0964652016-09-19 23:01:42 -070071 <item name="contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item>
Steve Kondik03b56502016-09-10 17:17:25 -070072 </style>
73
Ethan Chen10906822017-10-06 00:15:00 -070074 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar">
Steve Kondik03b56502016-09-10 17:17:25 -070075 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
76 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
Ethan Chen10906822017-10-06 00:15:00 -070077 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
Steve Kondik03b56502016-09-10 17:17:25 -070078 </style>
79
Ethan Chen10906822017-10-06 00:15:00 -070080 <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.ActionBar">
Steve Kondik03b56502016-09-10 17:17:25 -070081 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
82 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
Ethan Chen10906822017-10-06 00:15:00 -070083 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
Steve Kondik03b56502016-09-10 17:17:25 -070084 </style>
85
86 <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge">
87 <!-- Redefine the ActionBar style for contentInsetStart -->
Steve Kondikf0964652016-09-19 23:01:42 -070088 <item name="actionBarStyle">@style/Theme.ActionBar</item>
Steve Kondik03b56502016-09-10 17:17:25 -070089
90 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
91 </style>
92
93 <style name="Theme.SubSettingsDialogWhenLarge" parent="Theme.DialogWhenLarge">
94 <item name="preferenceTheme">@style/PreferenceTheme</item>
Steve Kondikf0964652016-09-19 23:01:42 -070095 <item name="actionBarWidgetTheme">@null</item>
Ethan Chen10906822017-10-06 00:15:00 -070096 <item name="actionBarTheme">@android:style/ThemeOverlay.Material.ActionBar</item>
Steve Kondik03b56502016-09-10 17:17:25 -070097
98 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
99 </style>
100
Steve Kondik27cfe782016-09-06 04:33:28 -0700101 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
102 <item name="android:windowSoftInputMode">adjustResize</item>
103 </style>
104
Ethan Chen10906822017-10-06 00:15:00 -0700105 <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert">
Steve Kondik27cfe782016-09-06 04:33:28 -0700106 <item name="android:windowSoftInputMode">adjustResize</item>
107
108 <!-- Redefine the ActionBar style for contentInsetStart -->
109 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
110 </style>
111
Steve Kondik66dbbd52016-09-03 05:15:27 -0700112</resources>