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> 18 <attr name="fingerprint_layout_theme" format="reference" /> 19 <attr name="ic_menu_moreoverflow" format="reference" /> 20 <attr name="ic_wps" format="reference" /> 21 <attr name="setup_divider_color" format="reference" /> 22 <attr name="side_margin" format="reference|dimension" /> 23 <attr name="wifi_signal_color" format="reference" /> 24 25 <style name="SetupWizardTheme" parent="SuwThemeGlif"> 26 <!-- For all Alert Dialogs --> 27 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item> 28 <item name="android:colorPrimary">@color/suw_color_accent_dark</item> 29 <item name="android:windowBackground">?android:attr/colorBackground</item> 30 <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item> 31 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item> 32 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item> 33 <item name="ic_wps">@drawable/ic_wps_dark</item> 34 <item name="setup_divider_color">@color/setup_divider_color_dark</item> 35 <item name="side_margin">0dip</item> 36 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item> 37 <item name="wifi_signal">@drawable/wifi_signal</item> 38 <item name="wifi_friction">@drawable/wifi_friction</item> 39 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item> 40 <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item> 41 42 <!-- LockPatternView colors --> 43 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item> 44 </style> 45 46 <style name="SetupWizardTheme.Light" parent="SuwThemeGlif.Light"> 47 <!-- For all Alert Dialogs --> 48 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item> 49 <item name="android:colorPrimary">@color/suw_color_accent_light</item> 50 <item name="android:windowBackground">?android:attr/colorBackground</item> 51 <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item> 52 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item> 53 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item> 54 <item name="ic_wps">@drawable/ic_wps_light</item> 55 <item name="setup_divider_color">@color/setup_divider_color_light</item> 56 <item name="side_margin">0dip</item> 57 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item> 58 <item name="wifi_signal">@drawable/wifi_signal</item> 59 <item name="wifi_friction">@drawable/wifi_friction</item> 60 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item> 61 <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item> 62 63 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item> 64 </style> 65 66 <style name="SetupWizardTheme.Transparent" parent="SetupWizardTheme"> 67 <item name="android:windowBackground">@android:color/transparent</item> 68 <item name="android:windowNoTitle">true</item> 69 <item name="android:windowIsFloating">true</item> 70 <item name="android:windowAnimationStyle">@null</item> 71 </style> 72 73 <style name="SetupWizardTheme.Light.Transparent" parent="SetupWizardTheme.Light"> 74 <item name="android:windowBackground">@android:color/transparent</item> 75 <item name="android:windowNoTitle">true</item> 76 <item name="android:windowIsFloating">true</item> 77 <item name="android:windowAnimationStyle">@null</item> 78 </style> 79 80 <style name="SuwSuggestionThemeGlif.Light" parent="SuwThemeGlif.Light"> 81 <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item> 82 </style> 83 84 <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.v14.Material"> 85 <!-- Parent path frameworks/support/v14/preference/res/values/themes.xml --> 86 <item name="android:scrollbars">vertical</item> 87 <item name="apnPreferenceStyle">@style/ApnPreference</item> 88 <item name="footerPreferenceStyle">@style/FooterPreference</item> 89 <item name="dialogPreferenceStyle">@style/SettingsDialogPreference</item> 90 <item name="dropdownPreferenceStyle">@style/SettingsDropdownPreference</item> 91 <item name="editTextPreferenceStyle">@style/EditTextPreference</item> 92 <item name="preferenceCategoryStyle">@style/SettingsPreferenceCategory</item> 93 <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item> 94 <item name="preferenceStyle">@style/SettingsPreference</item> 95 <item name="seekBarPreferenceStyle">@style/SettingsSeekBarPreference</item> 96 <item name="switchPreferenceStyle">@style/SettingsSwitchPreference</item> 97 </style> 98 99 <style name="PreferenceTheme.SetupWizard" parent="PreferenceTheme"> 100 <item name="preferenceFragmentStyle">@style/SetupWizardPreferenceFragmentStyle</item> 101 <item name="preferenceStyle">@style/Preference.Material</item> 102 </style> 103 104 <style name="SetupWizardPreferenceFragmentStyle" parent="PreferenceFragment.Material"> 105 <item name="android:layout">@layout/setup_preference</item> 106 </style> 107 108 <!-- Accessibility portion of Setup Wizard --> 109 <style name="SetupWizardAccessibilityTheme" parent="Theme.SettingsBase"> 110 <item name="android:windowLightStatusBar">false</item> 111 <item name="android:colorPrimary">@color/material_grey_100</item> 112 <item name="android:colorAccent">@color/material_blue_700</item> 113 <item name="android:titleTextColor">@color/material_blue_700</item> 114 <item name="preferenceTheme">@style/PreferenceTheme</item> 115 <item name="switchBarTheme">@style/SetupWizardAccessibilitySwitchBarTheme</item> 116 </style> 117 118 <style name="SetupWizardAccessibilitySwitchBarTheme" parent="ThemeOverlay.SwitchBar.Settings"> 119 <item name="switchBarBackgroundColor">@color/material_grey_200</item> 120 <item name="android:colorControlActivated">@color/material_blue_500</item> 121 <item name="android:textColorPrimary">@android:color/black</item> 122 </style> 123 124 <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate 125 layouts against a remote context using our local theme colors. Due to the implementation 126 details of Theme, we can't reference any local resources and MUST instead use the values 127 directly. So use #ff263238 instead of @color/theme_primary and so on. --> 128 <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" /> 129 130 <style name="Theme.Settings" parent="Theme.SettingsBase"> 131 <item name="preferenceTheme">@style/PreferenceTheme</item> 132 <item name="android:listPreferredItemHeight">72dip</item> 133 <item name="*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item> 134 <item name="*android:preferencePanelStyle">@style/PreferencePanelSinglePane</item> 135 <item name="*android:preferenceListStyle">@style/PreferenceHeaderListSinglePane</item> 136 <item name="*android:preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item> 137 <item name="*android:preferenceFragmentPaddingSide">@dimen/settings_side_margin</item> 138 139 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item> 140 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item> 141 <item name="ic_wps">@drawable/ic_wps_light</item> 142 <item name="wifi_signal">@drawable/wifi_signal</item> 143 <item name="wifi_signal_color">?android:attr/colorAccent</item> 144 <item name="wifi_friction">@drawable/wifi_friction</item> 145 <item name="side_margin">@dimen/settings_side_margin</item> 146 <item name="suwListItemIconColor">?android:attr/colorAccent</item> 147 148 <!-- Redefine the ActionBar style for contentInsetStart --> 149 <item name="android:actionBarStyle">@style/Theme.ActionBar</item> 150 151 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> 152 153 <item name="preferenceBackgroundColor">@drawable/preference_background</item> 154 155 <!-- For all Alert Dialogs --> 156 <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item> 157 158 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item> 159 </style> 160 161 <style name="Theme.SubSettings" parent="Theme.Settings"> 162 <!-- Redefine the ActionBar style for contentInsetStart --> 163 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item> 164 165 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item> 166 </style> 167 168 <style name="Theme.ProvisioningActivity" parent="@android:style/Theme.Translucent.NoTitleBar"> 169 <item name="android:windowAnimationStyle">@null</item> 170 <item name="android:windowIsTranslucent">true</item> 171 <item name="android:windowBackground">@android:color/transparent</item> 172 <item name="android:windowContentOverlay">@null</item> 173 <item name="android:windowNoTitle">true</item> 174 <item name="android:windowIsFloating">true</item> 175 <item name="android:backgroundDimEnabled">false</item> 176 </style> 177 178 <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> 179 <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item> 180 </style> 181 182 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar"> 183 <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> 184 </style> 185 186 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar"> 187 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> 188 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> 189 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item> 190 </style> 191 192 <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.ActionBar"> 193 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> 194 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> 195 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item> 196 </style> 197 198 <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar"> 199 <item name="android:windowTranslucentStatus">false</item> 200 <item name="android:windowTranslucentNavigation">false</item> 201 <item name="android:windowDrawsSystemBarBackgrounds">false</item> 202 <item name="android:background">@android:color/black</item> 203 204 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Unlock</item> 205 </style> 206 207 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> 208 <item name="android:windowSoftInputMode">adjustResize</item> 209 </style> 210 211 <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert"> 212 <item name="android:windowSoftInputMode">adjustResize</item> 213 214 <!-- Redefine the ActionBar style for contentInsetStart --> 215 <item name="android:actionBarStyle">@style/Theme.ActionBar</item> 216 </style> 217 218 <style name="Theme.NotificationStation" parent="@style/Theme.Settings"> 219 <!-- Redefine the ActionBar style for contentInsetStart --> 220 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item> 221 <item name="*android:actionBarSize">@dimen/actionbar_size</item> 222 223 <item name="preferenceBackgroundColor">@android:color/transparent</item> 224 </style> 225 226 <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings"> 227 <item name="confirmDeviceCredentialsSideMargin">@dimen/confirm_credentials_side_margin</item> 228 <item name="confirmDeviceCredentialsTopMargin">@dimen/confirm_credentials_top_margin</item> 229 </style> 230 231 <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.DeviceDefault"> 232 <item name="android:windowActionBar">false</item> 233 <item name="android:windowNoTitle">true</item> 234 <item name="android:windowBackground">?android:attr/colorPrimary</item> 235 236 <item name="confirmDeviceCredentialsSideMargin">32dp</item> 237 <item name="confirmDeviceCredentialsTopMargin">32dp</item> 238 239 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark</item> 240 241 <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item> 242 </style> 243 244 <style name="Theme.ConfirmDeviceCredentialsWork" parent="Theme.ConfirmDeviceCredentialsDark"> 245 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark.Work</item> 246 <item name="android:colorAccent">@*android:color/white</item> 247 </style> 248 249 <style name="Theme.FingerprintEnroll" parent="SuwThemeGlif.Light"> 250 <item name="android:textAppearanceListItemSmall">@android:style/TextAppearance.Material.Body1</item> 251 252 <item name="suwDividerCondition">both</item> 253 <item name="suwListItemIconColor">?android:attr/colorAccent</item> 254 </style> 255 256 <style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.NoActionBar"> 257 <item name="android:windowBackground">@android:color/transparent</item> 258 <item name="android:colorBackgroundCacheHint">@null</item> 259 <item name="android:windowShowWallpaper">true</item> 260 <item name="android:windowNoTitle">true</item> 261 <item name="android:windowTranslucentStatus">false</item> 262 <item name="android:windowTranslucentNavigation">false</item> 263 <item name="android:windowDrawsSystemBarBackgrounds">true</item> 264 <item name="android:statusBarColor">#00000000</item> 265 <item name="android:navigationBarColor">#00000000</item> 266 </style> 267 268 <style name="FallbackHome.SetupWizard" parent="@android:style/Theme.Material.NoActionBar.Fullscreen"> 269 <item name="android:windowBackground">@drawable/fallback_home_unprovisioned_background</item> 270 <item name="android:colorBackgroundCacheHint">@null</item> 271 <item name="android:windowNoTitle">true</item> 272 <item name="android:windowDrawsSystemBarBackgrounds">true</item> 273 <item name="android:statusBarColor">#00000000</item> 274 <item name="android:navigationBarColor">#00000000</item> 275 </style> 276 277 <style name="FallbackHomeProgressBar" parent="FallbackHome"> 278 <item name="android:colorControlActivated">?android:attr/textColorPrimary</item> 279 </style> 280 281 <style name="BluetoothPermission" parent="@android:style/Theme.Material.Light.Dialog.Alert"> 282 <item name="android:windowNoTitle">true</item> 283 </style> 284 285 </resources> 286