1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
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" />
25 <style name="GlifTheme" 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>
42 <!-- LockPatternView colors -->
43 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
46 <style name="GlifTheme.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>
63 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
66 <style name="GlifV2Theme" parent="SuwThemeGlifV2">
67 <!-- For all Alert Dialogs -->
68 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
69 <item name="android:colorPrimary">@color/suw_color_accent_dark</item>
70 <item name="android:windowBackground">?android:attr/colorBackground</item>
71 <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
72 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
73 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
74 <item name="ic_wps">@drawable/ic_wps_dark</item>
75 <item name="setup_divider_color">@color/setup_divider_color_dark</item>
76 <item name="side_margin">0dip</item>
77 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
78 <item name="wifi_signal">@drawable/wifi_signal</item>
79 <item name="wifi_friction">@drawable/wifi_friction</item>
80 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
81 <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
83 <!-- LockPatternView colors -->
84 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
87 <style name="GlifV2Theme.Light" parent="SuwThemeGlifV2.Light">
88 <!-- For all Alert Dialogs -->
89 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
90 <item name="android:colorPrimary">@color/suw_color_accent_light</item>
91 <item name="android:windowBackground">?android:attr/colorBackground</item>
92 <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
93 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
94 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
95 <item name="ic_wps">@drawable/ic_wps_light</item>
96 <item name="setup_divider_color">@color/setup_divider_color_light</item>
97 <item name="side_margin">0dip</item>
98 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
99 <item name="wifi_signal">@drawable/wifi_signal</item>
100 <item name="wifi_friction">@drawable/wifi_friction</item>
101 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
102 <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
104 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
107 <style name="SetupWizardTheme.Transparent" parent="GlifTheme">
108 <item name="android:windowBackground">@android:color/transparent</item>
109 <item name="android:windowNoTitle">true</item>
110 <item name="android:windowIsFloating">true</item>
111 <item name="android:windowAnimationStyle">@null</item>
114 <style name="SetupWizardTheme.Light.Transparent" parent="GlifTheme.Light">
115 <item name="android:windowBackground">@android:color/transparent</item>
116 <item name="android:windowNoTitle">true</item>
117 <item name="android:windowIsFloating">true</item>
118 <item name="android:windowAnimationStyle">@null</item>
121 <style name="SuwSuggestionThemeGlif.Light" parent="SuwThemeGlif.Light">
122 <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item>
125 <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.v14.Material">
126 <!-- Parent path frameworks/support/v14/preference/res/values/themes.xml -->
127 <item name="android:scrollbars">vertical</item>
128 <item name="apnPreferenceStyle">@style/ApnPreference</item>
129 <item name="footerPreferenceStyle">@style/FooterPreference</item>
130 <item name="dialogPreferenceStyle">@style/SettingsDialogPreference</item>
131 <item name="dropdownPreferenceStyle">@style/SettingsDropdownPreference</item>
132 <item name="editTextPreferenceStyle">@style/EditTextPreference</item>
133 <item name="preferenceCategoryStyle">@style/SettingsPreferenceCategory</item>
134 <item name="preferenceFragmentStyle">@style/PreferenceFragmentStyle</item>
135 <item name="preferenceStyle">@style/SettingsPreference</item>
136 <item name="seekBarPreferenceStyle">@style/SettingsSeekBarPreference</item>
137 <item name="switchPreferenceStyle">@style/SettingsSwitchPreference</item>
140 <style name="PreferenceTheme.SetupWizard" parent="PreferenceTheme">
141 <item name="preferenceFragmentStyle">@style/SetupWizardPreferenceFragmentStyle</item>
142 <item name="preferenceStyle">@style/Preference.Material</item>
145 <style name="SetupWizardPreferenceFragmentStyle" parent="PreferenceFragment.Material">
146 <item name="android:layout">@layout/setup_preference</item>
149 <!-- Accessibility portion of Setup Wizard -->
150 <style name="SetupWizardAccessibilityTheme" parent="Theme.SettingsBase">
151 <item name="android:windowLightStatusBar">false</item>
152 <item name="android:colorPrimary">@color/material_grey_100</item>
153 <item name="android:colorAccent">@color/material_blue_700</item>
154 <item name="android:titleTextColor">@color/material_blue_700</item>
155 <item name="preferenceTheme">@style/PreferenceTheme</item>
156 <item name="switchBarTheme">@style/SetupWizardAccessibilitySwitchBarTheme</item>
159 <style name="SetupWizardAccessibilitySwitchBarTheme" parent="ThemeOverlay.SwitchBar.Settings">
160 <item name="switchBarBackgroundColor">@color/material_grey_200</item>
161 <item name="android:colorControlActivated">@color/material_blue_500</item>
162 <item name="android:textColorPrimary">@android:color/black</item>
165 <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate
166 layouts against a remote context using our local theme colors. Due to the implementation
167 details of Theme, we can't reference any local resources and MUST instead use the values
168 directly. So use #ff263238 instead of @color/theme_primary and so on. -->
169 <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" />
171 <style name="Theme.Settings" parent="Theme.SettingsBase">
172 <item name="preferenceTheme">@style/PreferenceTheme</item>
173 <item name="android:listPreferredItemHeight">72dip</item>
174 <item name="*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
175 <item name="*android:preferencePanelStyle">@style/PreferencePanelSinglePane</item>
176 <item name="*android:preferenceListStyle">@style/PreferenceHeaderListSinglePane</item>
177 <item name="*android:preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item>
178 <item name="*android:preferenceFragmentPaddingSide">@dimen/settings_side_margin</item>
180 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
181 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item>
182 <item name="ic_wps">@drawable/ic_wps_light</item>
183 <item name="wifi_signal">@drawable/wifi_signal</item>
184 <item name="wifi_signal_color">?android:attr/colorAccent</item>
185 <item name="wifi_friction">@drawable/wifi_friction</item>
186 <item name="side_margin">@dimen/settings_side_margin</item>
187 <item name="suwListItemIconColor">?android:attr/colorAccent</item>
189 <!-- Redefine the ActionBar style for contentInsetStart -->
190 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
192 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
194 <item name="preferenceBackgroundColor">@drawable/preference_background</item>
196 <!-- For all Alert Dialogs -->
197 <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item>
199 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
202 <style name="Theme.SubSettings" parent="Theme.Settings">
203 <!-- Redefine the ActionBar style for contentInsetStart -->
204 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
206 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item>
209 <!-- Variant of the settings theme with no action bar. -->
210 <style name="Theme.Settings.NoActionBar">
211 <item name="android:windowActionBar">false</item>
212 <item name="android:windowNoTitle">true</item>
215 <style name="Theme.ProvisioningActivity" parent="@android:style/Theme.Translucent.NoTitleBar">
216 <item name="android:windowAnimationStyle">@null</item>
217 <item name="android:windowIsTranslucent">true</item>
218 <item name="android:windowBackground">@android:color/transparent</item>
219 <item name="android:windowContentOverlay">@null</item>
220 <item name="android:windowNoTitle">true</item>
221 <item name="android:windowIsFloating">true</item>
222 <item name="android:backgroundDimEnabled">false</item>
225 <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid">
226 <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
229 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar">
230 <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item>
233 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar">
234 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
235 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
236 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
239 <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.ActionBar">
240 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
241 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
242 <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
245 <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar">
246 <item name="android:windowTranslucentStatus">false</item>
247 <item name="android:windowTranslucentNavigation">false</item>
248 <item name="android:windowDrawsSystemBarBackgrounds">false</item>
249 <item name="android:background">@android:color/black</item>
251 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Unlock</item>
254 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
255 <item name="android:windowSoftInputMode">adjustResize</item>
258 <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert">
259 <item name="android:windowSoftInputMode">adjustResize</item>
261 <!-- Redefine the ActionBar style for contentInsetStart -->
262 <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
265 <style name="Theme.NotificationStation" parent="@style/Theme.Settings">
266 <!-- Redefine the ActionBar style for contentInsetStart -->
267 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
268 <item name="*android:actionBarSize">@dimen/actionbar_size</item>
270 <item name="preferenceBackgroundColor">@android:color/transparent</item>
273 <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings">
274 <item name="confirmDeviceCredentialsSideMargin">@dimen/confirm_credentials_side_margin</item>
275 <item name="confirmDeviceCredentialsTopMargin">@dimen/confirm_credentials_top_margin</item>
278 <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.DeviceDefault">
279 <item name="android:windowActionBar">false</item>
280 <item name="android:windowNoTitle">true</item>
281 <item name="android:windowBackground">?android:attr/colorPrimary</item>
283 <item name="confirmDeviceCredentialsSideMargin">32dp</item>
284 <item name="confirmDeviceCredentialsTopMargin">32dp</item>
286 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark</item>
288 <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item>
291 <style name="Theme.ConfirmDeviceCredentialsWork" parent="Theme.ConfirmDeviceCredentialsDark">
292 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark.Work</item>
293 <item name="android:colorAccent">@*android:color/white</item>
296 <style name="Theme.FingerprintEnroll" parent="SuwThemeGlif.Light">
297 <item name="android:textAppearanceListItemSmall">@android:style/TextAppearance.Material.Body1</item>
299 <item name="suwDividerCondition">both</item>
300 <item name="suwListItemIconColor">?android:attr/colorAccent</item>
303 <style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.NoActionBar">
304 <item name="android:windowBackground">@android:color/transparent</item>
305 <item name="android:colorBackgroundCacheHint">@null</item>
306 <item name="android:windowShowWallpaper">true</item>
307 <item name="android:windowNoTitle">true</item>
308 <item name="android:windowTranslucentStatus">false</item>
309 <item name="android:windowTranslucentNavigation">false</item>
310 <item name="android:windowDrawsSystemBarBackgrounds">true</item>
311 <item name="android:statusBarColor">#00000000</item>
312 <item name="android:navigationBarColor">#00000000</item>
315 <style name="FallbackHome.SetupWizard" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
316 <item name="android:windowBackground">@drawable/fallback_home_unprovisioned_background</item>
317 <item name="android:colorBackgroundCacheHint">@null</item>
318 <item name="android:windowNoTitle">true</item>
319 <item name="android:windowDrawsSystemBarBackgrounds">true</item>
320 <item name="android:statusBarColor">#00000000</item>
321 <item name="android:navigationBarColor">#00000000</item>
324 <style name="FallbackHomeProgressBar" parent="FallbackHome">
325 <item name="android:colorControlActivated">?android:attr/textColorPrimary</item>
328 <style name="BluetoothPermission" parent="@android:style/Theme.Material.Light.Dialog.Alert">
329 <item name="android:windowNoTitle">true</item>