Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 1 | <?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 Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 18 | <attr name="side_margin" format="reference|dimension" /> |
| 19 | <attr name="wifi_signal_color" format="reference" /> |
| 20 | |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 21 | <!-- 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 Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 25 | <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" /> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 26 | |
| 27 | <style name="Theme.Settings" parent="Theme.SettingsBase"> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 28 | <item name="dialogPreferenceStyle">@style/DialogPreferenceStyle</item> |
Bruno Martins | b1b2557 | 2018-01-22 00:22:54 +0000 | [diff] [blame^] | 29 | <item name="dropdownPreferenceStyle">@style/DropdownPreferenceStyle</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 30 | <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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 35 | <item name="preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item> |
| 36 | <item name="preferencePanelStyle">@style/PreferencePanelSinglePane</item> |
| 37 | <item name="preferenceListStyle">@style/PreferenceHeaderListSinglePane</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 38 | <item name="preferenceScreenStyle">@style/PreferenceStyle</item> |
| 39 | <item name="preferenceStyle">@style/PreferenceStyle</item> |
| 40 | <item name="preferenceTheme">@style/PreferenceTheme</item> |
LuK1337 | 9247d26 | 2017-12-18 14:20:04 +0100 | [diff] [blame] | 41 | <item name="checkBoxPreferenceStyle">@style/CheckBoxPreferenceStyle</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 42 | <item name="switchPreferenceStyle">@style/SwitchPreferenceStyle</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 43 | |
| 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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 49 | <item name="android:actionBarSize">@dimen/actionbar_size</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 50 | |
| 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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 56 | <item name="alertDialogTheme">@style/Theme.AlertDialog</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 57 | </style> |
| 58 | |
| 59 | <style name="Theme.SubSettings" parent="Theme.Settings"> |
| 60 | <!-- Redefine the ActionBar style for contentInsetStart --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 61 | <item name="actionBarStyle">@style/Theme.ActionBar.SubSettings</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 62 | |
| 63 | <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item> |
| 64 | </style> |
| 65 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 66 | <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 67 | <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item> |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 68 | </style> |
| 69 | |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 70 | <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 71 | <item name="contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 72 | </style> |
| 73 | |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 74 | <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar"> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 75 | <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> |
| 76 | <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 77 | <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 78 | </style> |
| 79 | |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 80 | <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.ActionBar"> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 81 | <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> |
| 82 | <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 83 | <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 84 | </style> |
| 85 | |
| 86 | <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge"> |
| 87 | <!-- Redefine the ActionBar style for contentInsetStart --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 88 | <item name="actionBarStyle">@style/Theme.ActionBar</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 89 | |
| 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 Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 95 | <item name="actionBarWidgetTheme">@null</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 96 | <item name="actionBarTheme">@android:style/ThemeOverlay.Material.ActionBar</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 97 | |
| 98 | <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| 99 | </style> |
| 100 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 101 | <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> |
| 102 | <item name="android:windowSoftInputMode">adjustResize</item> |
| 103 | </style> |
| 104 | |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 105 | <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert"> |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 106 | <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 Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 112 | </resources> |