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 | |
| 21 | <style name="PreferenceTheme" parent="@android:style/Theme.DeviceDefault.Settings"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 22 | <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 Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 36 | <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 Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 47 | <item name="android:actionBarSize">@dimen/actionbar_size</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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 --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 54 | <item name="alertDialogTheme">@style/Theme.AlertDialog</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 55 | </style> |
| 56 | |
| 57 | <style name="Theme.SubSettings" parent="Theme.Settings"> |
| 58 | <!-- Redefine the ActionBar style for contentInsetStart --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 59 | <item name="actionBarStyle">@style/Theme.ActionBar.SubSettings</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 60 | |
| 61 | <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item> |
| 62 | </style> |
| 63 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 64 | <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 65 | <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item> |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 66 | </style> |
| 67 | |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 68 | <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 69 | <item name="contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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 --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 86 | <item name="actionBarStyle">@style/Theme.ActionBar</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 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> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame^] | 93 | <item name="actionBarWidgetTheme">@null</item> |
| 94 | <item name="actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 95 | |
| 96 | <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| 97 | </style> |
| 98 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 99 | <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 Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 110 | <!-- 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 Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 115 | </style> |
| 116 | |
Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 117 | </resources> |