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
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:clipToPadding">false</item>
31        <item name="android:clipChildren">false</item>
32        <item name="android:listPreferredItemHeight">72dip</item>
33        <item name="android:homeAsUpIndicator">@drawable/ic_arrow_back</item>
34        <item name="android:navigationBarColor">@android:color/transparent</item>
35
36        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
37        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
38        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item>
39
40        <!-- For wifi icon -->
41        <item name="wifi_signal">@drawable/wifi_signal</item>
42        <item name="wifi_signal_color">?android:attr/colorAccent</item>
43        <item name="wifi_friction">@drawable/wifi_friction</item>
44
45        <item name="side_margin">0dp</item>
46        <item name="sudListItemIconColor">?android:attr/colorAccent</item>
47
48        <!-- Redefine the ActionBar style for contentInsetStart -->
49        <item name="android:actionBarStyle">@style/Widget.ActionBar</item>
50
51        <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
52
53        <item name="preferenceBackgroundColor">@drawable/preference_background</item>
54
55        <!-- For AndroidX AlertDialog -->
56        <item name="alertDialogTheme">@style/Theme.AlertDialog</item>
57
58        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
59
60        <!-- For AppBarLayout -->
61        <item name="colorPrimary">@*android:color/primary_device_default_settings_light</item>
62        <item name="colorPrimaryVariant">@android:color/white</item>
63
64        <!-- For slice view in settings -->
65        <item name="sliceViewStyle">@style/Widget.SliceView.Settings</item>
66    </style>
67
68    <!-- Variant of the settings theme with no action bar. -->
69    <style name="Theme.Settings.NoActionBar">
70        <item name="android:windowActionBar">false</item>
71        <item name="android:windowNoTitle">true</item>
72    </style>
73
74    <style name="Theme.SubSettings.Base" parent="Theme.Settings">
75        <!-- Redefine the ActionBar style for contentInsetStart -->
76        <item name="android:actionBarStyle">@style/Widget.ActionBar.SubSettings</item>
77
78        <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
79    </style>
80
81    <style name="Theme.SubSettings" parent="Theme.SubSettings.Base"/>
82
83    <style name="Theme.ProvisioningActivity" parent="@android:style/Theme.Translucent.NoTitleBar">
84        <item name="android:windowAnimationStyle">@null</item>
85        <item name="android:windowIsTranslucent">true</item>
86        <item name="android:windowBackground">@android:color/transparent</item>
87        <item name="android:windowContentOverlay">@null</item>
88        <item name="android:windowNoTitle">true</item>
89        <item name="android:windowIsFloating">true</item>
90        <item name="android:backgroundDimEnabled">false</item>
91    </style>
92
93    <style name="ThemeOverlay.SwitchBar.Settings.Base" parent="@*android:style/ThemeOverlay.DeviceDefault.ActionBar">
94        <item name="android:elevation">1dp</item>
95        <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
96        <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
97        <item name="switchBarBackgroundColor">@color/switchbar_background_color</item>
98        <item name="switchBarBackgroundActivatedColor">?android:attr/colorAccent</item>
99        <item name="switchBarRestrictionIcon">@*android:drawable/ic_info</item>
100    </style>
101
102    <style name="ThemeOverlay.SwitchBar.Settings" parent="ThemeOverlay.SwitchBar.Settings.Base"/>
103
104    <style name="Widget.SwitchBar.Switch" parent="@android:style/Widget.Material.CompoundButton.Switch">
105        <item name="android:trackTint">@color/switchbar_switch_track_tint</item>
106        <item name="android:thumbTint">@color/switchbar_switch_thumb_tint</item>
107        <item name="android:minHeight">@dimen/min_tap_target_size</item>
108        <item name="android:minWidth">@dimen/min_tap_target_size</item>
109    </style>
110
111    <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar">
112        <item name="android:windowTranslucentStatus">false</item>
113        <item name="android:windowTranslucentNavigation">false</item>
114        <item name="android:windowDrawsSystemBarBackgrounds">false</item>
115        <item name="android:background">@android:color/black</item>
116
117        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Unlock</item>
118    </style>
119
120    <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
121        <item name="android:windowSoftInputMode">adjustResize</item>
122    </style>
123
124    <style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
125        <item name="colorAccent">@*android:color/accent_device_default_light</item>
126        <item name="android:colorBackground">@color/dialog_background</item>
127    </style>
128
129    <style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base">
130        <item name="android:windowSoftInputMode">adjustResize</item>
131        <item name="android:clipToPadding">true</item>
132        <item name="android:clipChildren">true</item>
133
134        <!-- Redefine the ActionBar style for contentInsetStart -->
135        <item name="android:actionBarStyle">@style/Widget.ActionBar</item>
136
137        <!-- copied from Theme.DeviceDefault.Dialog.Alert -->
138        <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item>
139        <item name="android:windowTitleStyle">@*android:style/DialogWindowTitle.DeviceDefault</item>
140        <item name="android:textAppearanceMedium">@style/TextAppearance.DialogMessage</item>
141        <item name="buttonBarButtonStyle">@*android:style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog</item>
142    </style>
143
144    <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings">
145        <item name="confirmDeviceCredentialsSideMargin">@dimen/confirm_credentials_side_margin</item>
146        <item name="confirmDeviceCredentialsTopMargin">@dimen/confirm_credentials_top_margin</item>
147    </style>
148
149    <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.DeviceDefault">
150        <item name="android:windowActionBar">false</item>
151        <item name="android:windowNoTitle">true</item>
152        <item name="android:windowBackground">?android:attr/colorPrimary</item>
153
154        <item name="confirmDeviceCredentialsSideMargin">32dp</item>
155        <item name="confirmDeviceCredentialsTopMargin">32dp</item>
156
157        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark</item>
158
159        <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item>
160    </style>
161
162    <style name="Theme.ConfirmDeviceCredentialsWork" parent="Theme.ConfirmDeviceCredentialsDark">
163        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark.Work</item>
164        <item name="android:colorAccent">@*android:color/white</item>
165    </style>
166
167    <style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.NoActionBar">
168        <item name="android:windowBackground">@android:color/transparent</item>
169        <item name="android:colorBackgroundCacheHint">@null</item>
170        <item name="android:windowShowWallpaper">true</item>
171        <item name="android:windowNoTitle">true</item>
172        <item name="android:windowTranslucentStatus">false</item>
173        <item name="android:windowTranslucentNavigation">false</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="FallbackHome.SetupWizard" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
180        <item name="android:windowBackground">@drawable/fallback_home_unprovisioned_background</item>
181        <item name="android:colorBackgroundCacheHint">@null</item>
182        <item name="android:windowNoTitle">true</item>
183        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
184        <item name="android:statusBarColor">#00000000</item>
185        <item name="android:navigationBarColor">#00000000</item>
186    </style>
187
188    <style name="Theme.BluetoothPermission" parent="@style/Theme.AlertDialog">
189        <item name="android:windowNoTitle">true</item>
190    </style>
191
192    <style name="Theme.Settings.HomeBase" parent="Theme.Settings.NoActionBar">
193        <item name="colorPrimary">@*android:color/primary_device_default_settings_light</item>
194        <item name="colorAccent">@*android:color/accent_device_default_light</item>
195        <item name="preferenceTheme">@style/PreferenceTheme</item>
196
197        <!-- action bar, needed for search bar icon tinting -->
198        <item name="android:actionBarTheme">@*android:style/ThemeOverlay.DeviceDefault.ActionBar</item>
199
200        <!-- Define this color for material design -->
201        <item name="colorPrimaryVariant">@android:color/white</item>
202    </style>
203
204    <style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
205        <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item>
206        <item name="android:windowLightStatusBar">true</item>
207        <item name="android:navigationBarDividerColor">@*android:color/ripple_material_light</item>
208        <item name="android:navigationBarColor">@android:color/transparent</item>
209        <item name="android:windowBackground">@android:color/white</item>
210    </style>
211
212    <!-- Note that Dialog themes do not set list dividers -->
213    <style name="Theme.Panel" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog">
214        <item name="android:windowBackground">@null</item>
215        <item name="android:dividerHorizontal">@*android:drawable/list_divider_material</item>
216        <item name="android:windowNoTitle">true</item>
217        <item name="android:listDivider">@*android:drawable/list_divider_material</item>
218        <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item>
219    </style>
220
221    <!-- This light theme for a window that can be applied to show light theme in setupwizard flow,
222         regardless of whether system theme changed to dark or light theme. WARNING: your settings
223         activity shows in setupwizard flow, but doesn't use setupwizard theme. This theme must be
224         set to ensure settings activity always shows light theme in setupwizard flow. -->
225    <style name="LightTheme.SettingsBase.SetupWizard" parent="@android:style/Theme.DeviceDefault">
226        <item name="android:windowLightStatusBar">true</item>
227        <item name="android:navigationBarColor">@android:color/white</item>
228        <item name="android:windowLightNavigationBar">true</item>
229        <item name="android:navigationBarDividerColor">@*android:color/navigation_bar_divider_device_default_settings</item>
230
231        <item name="android:colorPrimary">@*android:color/primary_device_default_settings_light</item>
232        <item name="android:colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item>
233        <item name="android:colorBackground">@*android:color/background_device_default_light</item>
234        <item name="android:colorAccent">@*android:color/accent_device_default_light</item>
235
236        <item name="android:listDivider">@*android:color/list_divider_color_light</item>
237
238        <item name="android:textColorPrimary">@*android:color/primary_text_light</item>
239        <item name="android:textColorSecondary">@*android:color/secondary_text_light</item>
240    </style>
241
242    <!-- Light theme for those pages inherit SubSettings and launched during setup flow -->
243    <style name="LightTheme.SubSettings.SetupWizard" parent="@android:style/Theme.DeviceDefault.Light">
244        <item name="android:windowLightStatusBar">true</item>
245        <item name="android:statusBarColor">@android:color/white</item>
246        <item name="android:navigationBarColor">@android:color/white</item>
247        <item name="android:windowLightNavigationBar">true</item>
248        <item name="android:windowBackground">@android:color/white</item>
249        <item name="android:navigationBarDividerColor">@*android:color/navigation_bar_divider_device_default_settings</item>
250
251        <item name="android:colorPrimary">@android:color/white</item>
252        <item name="android:colorPrimaryDark">@android:color/white</item>
253        <item name="android:colorAccent">@color/material_blue_700</item>
254    </style>
255</resources>
256