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="fingerprint_progress_bar_size" format="reference|dimension" /> 20 <attr name="fingerprint_ring_radius" format="reference|dimension" /> 21 <attr name="ic_menu_add" format="reference" /> 22 <attr name="ic_menu_moreoverflow" format="reference" /> 23 <attr name="ic_wps" format="reference" /> 24 <attr name="setup_divider_color" format="reference" /> 25 <attr name="side_margin" format="reference|dimension" /> 26 <attr name="wifi_signal_color" format="reference" /> 27 <attr name="wifi_signal" format="reference" /> 28 29 <style name="SetupWizardDisableAppStartingTheme"> 30 <!-- Theme to disable the app starting window. The actual theme of the activity needs to 31 be then set in code via setTheme or onApplyThemeResource. --> 32 <item name="android:windowBackground">@null</item> 33 </style> 34 35 <style name="SetupWizardTheme" parent="SuwThemeMaterial"> 36 <!-- For all Alert Dialogs --> 37 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item> 38 <item name="android:listPreferredItemPaddingEnd">@dimen/suw_layout_margin_sides</item> 39 <item name="android:listPreferredItemPaddingStart">@dimen/suw_layout_margin_sides</item> 40 <item name="android:windowBackground">?android:attr/colorBackground</item> 41 <item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item> 42 <item name="fingerprint_layout_theme">@style/SetupWizardFingerprintLayoutTheme</item> 43 <item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item> 44 <item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item> 45 <item name="ic_menu_add">@drawable/ic_menu_add_dark</item> 46 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item> 47 <item name="ic_wps">@drawable/ic_wps_dark</item> 48 <item name="setup_divider_color">@color/setup_divider_color_dark</item> 49 <item name="side_margin">0dip</item> 50 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item> 51 <item name="wifi_signal">@drawable/wifi_signal</item> 52 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item> 53 54 <!-- LockPatternView colors --> 55 <item name="@*android:regularColor">@color/setup_lock_pattern_view_regular_color_dark</item> 56 <item name="@*android:successColor">@color/setup_lock_pattern_view_success_color_dark</item> 57 <item name="@*android:errorColor">@color/setup_lock_pattern_view_error_color_dark</item> 58 </style> 59 60 <style name="SetupWizardTheme.Light" parent="SuwThemeMaterial.Light"> 61 <!-- For all Alert Dialogs --> 62 <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item> 63 <item name="android:listPreferredItemPaddingEnd">@dimen/suw_layout_margin_sides</item> 64 <item name="android:listPreferredItemPaddingStart">@dimen/suw_layout_margin_sides</item> 65 <item name="android:windowBackground">?android:attr/colorBackground</item> 66 <item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item> 67 <item name="fingerprint_layout_theme">@style/SetupWizardFingerprintLayoutTheme</item> 68 <item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item> 69 <item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item> 70 <item name="ic_menu_add">@drawable/ic_menu_add_light</item> 71 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item> 72 <item name="ic_wps">@drawable/ic_wps_light</item> 73 <item name="setup_divider_color">@color/setup_divider_color_light</item> 74 <item name="side_margin">0dip</item> 75 <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item> 76 <item name="wifi_signal">@drawable/wifi_signal</item> 77 <item name="preferenceBackgroundColor">?android:attr/colorBackground</item> 78 79 <!-- LockPatternView colors --> 80 <item name="@*android:regularColor">@color/setup_lock_pattern_view_regular_color_light</item> 81 <item name="@*android:successColor">@color/setup_lock_pattern_view_success_color_light</item> 82 <item name="@*android:errorColor">@color/setup_lock_pattern_view_error_color_light</item> 83 </style> 84 85 <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate 86 layouts against a remote context using our local theme colors. Due to the implementation 87 details of Theme, we can't reference any local resources and MUST instead use the values 88 directly. So use #ff263238 instead of @color/theme_primary and so on. --> 89 <style name="Theme.SettingsBase" parent="@android:style/Theme.Material.Settings" /> 90 91 <style name="Theme.Settings" parent="Theme.SettingsBase"> 92 <item name="@*android:preferenceStyle">@style/Preference</item> 93 <item name="@*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item> 94 <item name="@*android:preferencePanelStyle">@style/PreferencePanelSinglePane</item> 95 <item name="@*android:preferenceListStyle">@style/PreferenceHeaderListSinglePane</item> 96 <item name="@*android:preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item> 97 <item name="@*android:preferenceFragmentStyle">@style/PreferenceFragmentStyle</item> 98 <item name="@*android:preferenceFragmentPaddingSide">@dimen/settings_side_margin</item> 99 100 <item name="apnPreferenceStyle">@style/ApnPreference</item> 101 102 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item> 103 <item name="fingerprint_progress_bar_size">@dimen/fingerprint_progress_bar_size</item> 104 <item name="fingerprint_ring_radius">@dimen/fingerprint_ring_radius</item> 105 <item name="ic_menu_add">@drawable/ic_menu_add_dark</item> 106 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item> 107 <item name="ic_wps">@drawable/ic_wps_light</item> 108 <item name="wifi_signal">@drawable/wifi_signal</item> 109 <item name="wifi_signal_color">?android:attr/colorAccent</item> 110 <item name="side_margin">@dimen/settings_side_margin</item> 111 112 <!-- Redefine the ActionBar style for contentInsetStart --> 113 <item name="android:actionBarStyle">@style/Theme.ActionBar</item> 114 <item name="@*android:actionBarSize">@dimen/actionbar_size</item> 115 116 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> 117 118 <item name="preferenceBackgroundColor">@drawable/preference_background</item> 119 120 <!-- For all Alert Dialogs --> 121 <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item> 122 123 <!-- LockPatternView colors --> 124 <item name="@*android:regularColor">@color/lock_pattern_view_regular_color</item> 125 <item name="@*android:successColor">@color/lock_pattern_view_success_color</item> 126 <item name="@*android:errorColor">@color/lock_pattern_view_error_color</item> 127 </style> 128 129 <style name="Theme.SubSettings" parent="Theme.Settings"> 130 <!-- Redefine the ActionBar style for contentInsetStart --> 131 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item> 132 133 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item> 134 </style> 135 136 <style name="Theme.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> 137 <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item> 138 </style> 139 140 <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar"> 141 <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> 142 </style> 143 144 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar"> 145 <item name="switchBarMarginStart">@dimen/switchbar_margin_start</item> 146 <item name="switchBarMarginEnd">@dimen/switchbar_margin_end</item> 147 </style> 148 149 <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.Dark.ActionBar"> 150 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> 151 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> 152 </style> 153 154 <style name="Theme.DialogWhenLarge" parent="@*android:style/Theme.Material.Settings.DialogWhenLarge"> 155 <!-- Redefine the ActionBar style for contentInsetStart --> 156 <item name="android:actionBarStyle">@style/Theme.ActionBar</item> 157 158 <item name="preferenceBackgroundColor">@drawable/preference_background</item> 159 </style> 160 161 <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar"> 162 <item name="android:windowTranslucentStatus">false</item> 163 <item name="android:windowTranslucentNavigation">false</item> 164 <item name="android:windowDrawsSystemBarBackgrounds">false</item> 165 <item name="android:background">@android:color/black</item> 166 167 <!-- LockPatternView colors --> 168 <item name="@*android:regularColor">@color/unlock_pattern_view_regular_color</item> 169 <item name="@*android:successColor">@color/unlock_pattern_view_success_color</item> 170 <item name="@*android:errorColor">@color/unlock_pattern_view_error_color</item> 171 </style> 172 173 <style name="Theme.SubSettingsDialogWhenLarge" parent="Theme.DialogWhenLarge"> 174 <item name="android:actionBarWidgetTheme">@null</item> 175 <item name="android:actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item> 176 177 <item name="preferenceBackgroundColor">@drawable/preference_background</item> 178 </style> 179 180 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> 181 <item name="android:windowSoftInputMode">adjustResize</item> 182 </style> 183 184 <style name="Theme.AlertDialog" parent="@*android:style/Theme.Material.Settings.Dialog.Alert"> 185 <item name="android:windowSoftInputMode">adjustResize</item> 186 187 <!-- Redefine the ActionBar style for contentInsetStart --> 188 <item name="android:actionBarStyle">@style/Theme.ActionBar</item> 189 </style> 190 191 <style name="Theme.NotificationStation" parent="@android:style/Theme.Material"> 192 <!-- Redefine the ActionBar style for contentInsetStart --> 193 <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item> 194 <item name="@*android:actionBarSize">@dimen/actionbar_size</item> 195 196 <item name="preferenceBackgroundColor">@android:color/transparent</item> 197 </style> 198 199 <!-- Used to color the switch bar controls --> 200 <style name="ThemeOverlay.SwitchBar" parent="@android:style/ThemeOverlay"> 201 <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. --> 202 <item name="android:colorAccent">@color/switch_accent_color</item> 203 </style> 204 205 <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings"> 206 <item name="confirmDeviceCredentialsSideMargin">16dp</item> 207 <item name="confirmDeviceCredentialsTopMargin">16dp</item> 208 </style> 209 210 <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.Material"> 211 <item name="android:colorPrimary">@*android:color/material_blue_grey_900</item> 212 <item name="android:colorPrimaryDark">@*android:color/material_blue_grey_950</item> 213 <item name="android:windowActionBar">false</item> 214 <item name="android:windowNoTitle">true</item> 215 <item name="android:windowBackground">@color/confirm_device_credential_dark_background</item> 216 217 <item name="confirmDeviceCredentialsSideMargin">32dp</item> 218 <item name="confirmDeviceCredentialsTopMargin">32dp</item> 219 220 <!-- LockPatternView colors --> 221 <item name="@*android:regularColor">@color/lock_pattern_view_regular_color_dark</item> 222 <item name="@*android:successColor">@color/lock_pattern_view_regular_color_dark</item> 223 <item name="@*android:errorColor">@color/lock_pattern_view_error_color</item> 224 225 <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item> 226 </style> 227 228 <style name="Theme.FingerprintEnroll" parent="@*android:style/Theme.Material.Settings.NoActionBar"> 229 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 230 </style> 231 232 </resources> 233