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> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 31 | <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item> |
| 32 | <item name="preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 33 | <item name="preferenceScreenStyle">@style/PreferenceStyle</item> |
| 34 | <item name="preferenceStyle">@style/PreferenceStyle</item> |
| 35 | <item name="preferenceTheme">@style/PreferenceTheme</item> |
LuK1337 | 9247d26 | 2017-12-18 14:20:04 +0100 | [diff] [blame] | 36 | <item name="checkBoxPreferenceStyle">@style/CheckBoxPreferenceStyle</item> |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 37 | <item name="switchPreferenceStyle">@style/SwitchPreferenceStyle</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 38 | |
| 39 | <item name="wifi_signal_color">?android:attr/colorAccent</item> |
| 40 | <item name="side_margin">@dimen/settings_side_margin</item> |
| 41 | |
| 42 | <!-- Redefine the ActionBar style for contentInsetStart --> |
| 43 | <item name="android:actionBarStyle">@style/Theme.ActionBar</item> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 44 | <item name="android:actionBarSize">@dimen/actionbar_size</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 45 | |
| 46 | <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> |
| 47 | |
| 48 | <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| 49 | |
| 50 | <!-- For all Alert Dialogs --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 51 | <item name="alertDialogTheme">@style/Theme.AlertDialog</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 52 | </style> |
| 53 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 54 | <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 55 | <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item> |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 56 | </style> |
| 57 | |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 58 | <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar"> |
Bruno Martins | 4f69942 | 2019-01-07 20:43:38 +0000 | [diff] [blame] | 59 | <item name="android:textColorPrimary">@android:color/white</item> |
Bruno Martins | 4f2ed04 | 2019-01-07 21:09:14 +0000 | [diff] [blame] | 60 | <item name="switchBarMarginStart">@dimen/switchbar_margin_start</item> |
| 61 | <item name="switchBarMarginEnd">@dimen/switchbar_margin_end</item> |
Bruno Martins | 4f69942 | 2019-01-07 20:43:38 +0000 | [diff] [blame] | 62 | <item name="switchBarBackgroundColor">@color/switch_bar_background</item> |
| 63 | <item name="switchBarBackgroundActivatedColor">?android:attr/colorAccent</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 64 | </style> |
| 65 | |
Bruno Martins | 4f69942 | 2019-01-07 20:43:38 +0000 | [diff] [blame] | 66 | <style name="Widget.SwitchBar.Switch" parent="@android:style/Widget.Material.CompoundButton.Switch"> |
| 67 | <item name="android:trackTint">@color/switchbar_switch_track_tint</item> |
| 68 | <item name="android:thumbTint">@color/switchbar_switch_thumb_tint</item> |
| 69 | <item name="android:minHeight">@dimen/min_tap_target_size</item> |
| 70 | </style> |
| 71 | |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 72 | <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge"> |
| 73 | <!-- Redefine the ActionBar style for contentInsetStart --> |
Steve Kondik | f096465 | 2016-09-19 23:01:42 -0700 | [diff] [blame] | 74 | <item name="actionBarStyle">@style/Theme.ActionBar</item> |
Steve Kondik | 03b5650 | 2016-09-10 17:17:25 -0700 | [diff] [blame] | 75 | |
| 76 | <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| 77 | </style> |
| 78 | |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 79 | <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> |
| 80 | <item name="android:windowSoftInputMode">adjustResize</item> |
| 81 | </style> |
| 82 | |
Ethan Chen | 1090682 | 2017-10-06 00:15:00 -0700 | [diff] [blame] | 83 | <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert"> |
Steve Kondik | 27cfe78 | 2016-09-06 04:33:28 -0700 | [diff] [blame] | 84 | <item name="android:windowSoftInputMode">adjustResize</item> |
| 85 | |
| 86 | <!-- Redefine the ActionBar style for contentInsetStart --> |
| 87 | <item name="android:actionBarStyle">@style/Theme.ActionBar</item> |
| 88 | </style> |
| 89 | |
Steve Kondik | 66dbbd5 | 2016-09-03 05:15:27 -0700 | [diff] [blame] | 90 | </resources> |