1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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 19 <style name="Transparent"> 20 <item name="alertDialogTheme">@style/Theme.AlertDialog</item> 21 <item name="android:windowBackground">@android:color/transparent</item> 22 <item name="android:windowNoTitle">true</item> 23 <item name="android:windowIsFloating">true</item> 24 </style> 25 26 <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" /> 27 28 <style name="Theme.Settings" parent="Theme.SettingsBase"> 29 <item name="preferenceTheme">@style/PreferenceTheme</item> 30 <item name="android:listPreferredItemHeight">72dip</item> 31 <item name="homeAsUpIndicator">@drawable/ic_arrow_back</item> 32 33 <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item> 34 <item name="face_layout_theme">@style/FaceLayoutTheme</item> 35 <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item> 36 37 <!-- For wifi icon --> 38 <item name="wifi_signal">@drawable/wifi_signal</item> 39 <item name="wifi_signal_color">?android:attr/colorAccent</item> 40 <item name="wifi_friction">@drawable/wifi_friction</item> 41 42 <item name="side_margin">0dp</item> 43 <item name="sudListItemIconColor">?android:attr/colorAccent</item> 44 45 <!-- Redefine the ActionBar style for contentInsetStart --> 46 <item name="android:actionBarStyle">@style/Widget.ActionBar</item> 47 48 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> 49 50 <item name="preferenceBackgroundColor">@drawable/preference_background</item> 51 52 <!-- For AndroidX AlertDialog --> 53 <item name="alertDialogTheme">@style/Theme.AlertDialog</item> 54 55 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item> 56 57 <!-- For AppBarLayout --> 58 <item name="colorPrimary">@*android:color/primary_device_default_settings_light</item> 59 <item name="colorPrimaryVariant">@android:color/white</item> 60 61 <!-- For slice view in settings --> 62 <item name="sliceViewStyle">@style/Widget.SliceView.Settings</item> 63 </style> 64 65 <!-- Variant of the settings theme with no action bar. --> 66 <style name="Theme.Settings.NoActionBar"> 67 <item name="android:windowActionBar">false</item> 68 <item name="android:windowNoTitle">true</item> 69 </style> 70 71 <style name="Theme.SubSettings.Base" parent="Theme.Settings"> 72 <!-- Redefine the ActionBar style for contentInsetStart --> 73 <item name="android:actionBarStyle">@style/Widget.ActionBar.SubSettings</item> 74 75 <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> 76 </style> 77 78 <style name="Theme.SubSettings" parent="Theme.SubSettings.Base"/> 79 80 <style name="Theme.ProvisioningActivity" parent="@android:style/Theme.Translucent.NoTitleBar"> 81 <item name="android:windowAnimationStyle">@null</item> 82 <item name="android:windowIsTranslucent">true</item> 83 <item name="android:windowBackground">@android:color/transparent</item> 84 <item name="android:windowContentOverlay">@null</item> 85 <item name="android:windowNoTitle">true</item> 86 <item name="android:windowIsFloating">true</item> 87 <item name="android:backgroundDimEnabled">false</item> 88 </style> 89 90 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar"> 91 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> 92 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> 93 <item name="switchBarBackgroundColor">?android:attr/textColorSecondary</item> 94 <item name="switchBarBackgroundActivatedColor">?android:attr/colorAccent</item> 95 <item name="switchBarRestrictionIcon">@*android:drawable/ic_info</item> 96 </style> 97 98 <style name="Widget.SwitchBar.Switch" parent="@android:style/Widget.Material.CompoundButton.Switch"> 99 <item name="android:trackTint">@color/switchbar_switch_track_tint</item> 100 <item name="android:thumbTint">@color/switchbar_switch_thumb_tint</item> 101 <item name="android:minHeight">@dimen/min_tap_target_size</item> 102 <item name="android:minWidth">@dimen/min_tap_target_size</item> 103 </style> 104 105 <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar"> 106 <item name="android:windowTranslucentStatus">false</item> 107 <item name="android:windowTranslucentNavigation">false</item> 108 <item name="android:windowDrawsSystemBarBackgrounds">false</item> 109 <item name="android:background">@android:color/black</item> 110 111 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Unlock</item> 112 </style> 113 114 <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> 115 <item name="android:windowSoftInputMode">adjustResize</item> 116 </style> 117 118 <style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert"> 119 <item name="colorAccent">@*android:color/accent_device_default_light</item> 120 </style> 121 122 <style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base"> 123 <item name="android:windowSoftInputMode">adjustResize</item> 124 125 <!-- Redefine the ActionBar style for contentInsetStart --> 126 <item name="android:actionBarStyle">@style/Widget.ActionBar</item> 127 128 <!-- copied from Theme.DeviceDefault.Dialog.Alert --> 129 <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item> 130 <item name="android:windowTitleStyle">@*android:style/DialogWindowTitle.DeviceDefault</item> 131 <item name="android:textAppearanceMedium">@style/TextAppearance.DialogMessage</item> 132 <item name="buttonBarButtonStyle">@*android:style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog</item> 133 </style> 134 135 <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings"> 136 <item name="confirmDeviceCredentialsSideMargin">@dimen/confirm_credentials_side_margin</item> 137 <item name="confirmDeviceCredentialsTopMargin">@dimen/confirm_credentials_top_margin</item> 138 </style> 139 140 <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.DeviceDefault"> 141 <item name="android:windowActionBar">false</item> 142 <item name="android:windowNoTitle">true</item> 143 <item name="android:windowBackground">?android:attr/colorPrimary</item> 144 145 <item name="confirmDeviceCredentialsSideMargin">32dp</item> 146 <item name="confirmDeviceCredentialsTopMargin">32dp</item> 147 148 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark</item> 149 150 <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item> 151 </style> 152 153 <style name="Theme.ConfirmDeviceCredentialsWork" parent="Theme.ConfirmDeviceCredentialsDark"> 154 <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark.Work</item> 155 <item name="android:colorAccent">@*android:color/white</item> 156 </style> 157 158 <style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.NoActionBar"> 159 <item name="android:windowBackground">@android:color/transparent</item> 160 <item name="android:colorBackgroundCacheHint">@null</item> 161 <item name="android:windowShowWallpaper">true</item> 162 <item name="android:windowNoTitle">true</item> 163 <item name="android:windowTranslucentStatus">false</item> 164 <item name="android:windowTranslucentNavigation">false</item> 165 <item name="android:windowDrawsSystemBarBackgrounds">true</item> 166 <item name="android:statusBarColor">#00000000</item> 167 <item name="android:navigationBarColor">#00000000</item> 168 </style> 169 170 <style name="FallbackHome.SetupWizard" parent="@android:style/Theme.Material.NoActionBar.Fullscreen"> 171 <item name="android:windowBackground">@drawable/fallback_home_unprovisioned_background</item> 172 <item name="android:colorBackgroundCacheHint">@null</item> 173 <item name="android:windowNoTitle">true</item> 174 <item name="android:windowDrawsSystemBarBackgrounds">true</item> 175 <item name="android:statusBarColor">#00000000</item> 176 <item name="android:navigationBarColor">#00000000</item> 177 </style> 178 179 <style name="Theme.BluetoothPermission" parent="@style/Theme.AlertDialog"> 180 <item name="android:windowNoTitle">true</item> 181 </style> 182 183 <style name="Theme.Settings.HomeBase" parent="Theme.Settings.NoActionBar"> 184 <item name="colorPrimary">@*android:color/primary_device_default_settings_light</item> 185 <item name="colorAccent">@*android:color/accent_device_default_light</item> 186 <item name="preferenceTheme">@style/PreferenceTheme</item> 187 188 <!-- action bar, needed for search bar icon tinting --> 189 <item name="android:actionBarTheme">@*android:style/ThemeOverlay.DeviceDefault.ActionBar</item> 190 191 <!-- Define this color for material design --> 192 <item name="colorPrimaryVariant">@android:color/white</item> 193 </style> 194 195 <style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase"> 196 <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item> 197 <item name="android:windowLightStatusBar">true</item> 198 <item name="android:navigationBarDividerColor">@*android:color/ripple_material_light</item> 199 <item name="android:navigationBarColor">@android:color/white</item> 200 <item name="android:windowBackground">@android:color/white</item> 201 <item name="android:windowLightNavigationBar">true</item> 202 </style> 203 204 <!-- Note that Dialog themes do not set list dividers --> 205 <style name="Theme.BottomDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog"> 206 <item name="android:windowBackground">@drawable/settings_panel_background</item> 207 <item name="android:dividerHorizontal">@*android:drawable/list_divider_material</item> 208 <item name="android:windowNoTitle">true</item> 209 <item name="android:listDivider">@*android:drawable/list_divider_material</item> 210 <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item> 211 </style> 212 213</resources> 214