| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2010 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <resources> |
| <attr name="side_margin" format="reference|dimension" /> |
| <attr name="wifi_signal_color" format="reference" /> |
| |
| <style name="PreferenceTheme" parent="@android:style/Theme.DeviceDefault.Settings"> |
| <item name="preferenceStyle">@style/Preference</item> |
| <item name="editTextPreferenceStyle">@style/EditTextPreference</item> |
| <item name="dropdownPreferenceStyle">@style/Preference.DropDown.Material</item> |
| <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item> |
| </style> |
| |
| <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate |
| layouts against a remote context using our local theme colors. Due to the implementation |
| details of Theme, we can't reference any local resources and MUST instead use the values |
| directly. So use #ff263238 instead of @color/theme_primary and so on. --> |
| <style name="Theme.SettingsBase" parent="@android:style/Theme.Material.Settings" /> |
| |
| <style name="Theme.Settings" parent="Theme.SettingsBase"> |
| <item name="preferenceTheme">@style/PreferenceTheme</item> |
| <item name="preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item> |
| <item name="preferencePanelStyle">@style/PreferencePanelSinglePane</item> |
| <item name="preferenceListStyle">@style/PreferenceHeaderListSinglePane</item> |
| <item name="preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item> |
| <item name="preferenceFragmentPaddingSide">@dimen/settings_side_margin</item> |
| |
| <item name="wifi_signal_color">?android:attr/colorAccent</item> |
| <item name="side_margin">@dimen/settings_side_margin</item> |
| |
| <!-- Redefine the ActionBar style for contentInsetStart --> |
| <item name="android:actionBarStyle">@style/Theme.ActionBar</item> |
| <item name="android:actionBarSize">@dimen/actionbar_size</item> |
| |
| <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> |
| |
| <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| |
| <!-- For all Alert Dialogs --> |
| <item name="alertDialogTheme">@style/Theme.AlertDialog</item> |
| </style> |
| |
| <style name="Theme.SubSettings" parent="Theme.Settings"> |
| <!-- Redefine the ActionBar style for contentInsetStart --> |
| <item name="actionBarStyle">@style/Theme.ActionBar.SubSettings</item> |
| |
| <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item> |
| </style> |
| |
| <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> |
| <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item> |
| </style> |
| |
| <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar"> |
| <item name="contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> |
| </style> |
| |
| <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar"> |
| <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> |
| <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> |
| <item name="switchBarBackgroundColor">@color/switchbar_background_color</item> |
| </style> |
| |
| <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar"> |
| <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> |
| <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> |
| <item name="switchBarBackgroundColor">@color/switchbar_background_color</item> |
| </style> |
| |
| <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge"> |
| <!-- Redefine the ActionBar style for contentInsetStart --> |
| <item name="actionBarStyle">@style/Theme.ActionBar</item> |
| |
| <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| </style> |
| |
| <style name="Theme.SubSettingsDialogWhenLarge" parent="Theme.DialogWhenLarge"> |
| <item name="preferenceTheme">@style/PreferenceTheme</item> |
| <item name="actionBarWidgetTheme">@null</item> |
| <item name="actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item> |
| |
| <item name="preferenceBackgroundColor">@drawable/preference_background</item> |
| </style> |
| |
| <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> |
| <item name="android:windowSoftInputMode">adjustResize</item> |
| </style> |
| |
| <style name="Theme.AlertDialog" parent="@*android:style/Theme.Material.Settings.Dialog.Alert"> |
| <item name="android:windowSoftInputMode">adjustResize</item> |
| |
| <!-- Redefine the ActionBar style for contentInsetStart --> |
| <item name="android:actionBarStyle">@style/Theme.ActionBar</item> |
| </style> |
| |
| <!-- Used to color the switch bar controls --> |
| <style name="ThemeOverlay.SwitchBar" parent="@android:style/ThemeOverlay"> |
| <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. --> |
| <item name="android:colorAccent">@color/switch_accent_color</item> |
| <item name="switchBarBackgroundColor">@color/switchbar_background_color</item> |
| </style> |
| |
| </resources> |