1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<!-- SUW related themes -->
19<resources>
20    <style name="GlifTheme" parent="SudThemeGlif.DayNight">
21        <!-- For all AndroidX Alert Dialogs -->
22        <item name="alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
23        <item name="android:windowBackground">?android:attr/colorBackground</item>
24        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
25        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
26        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
27        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
28        <item name="side_margin">0dip</item>
29        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
30        <item name="wifi_signal">@drawable/wifi_signal</item>
31        <item name="wifi_friction">@drawable/wifi_friction</item>
32        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
33        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
34
35        <!-- LockPatternView colors -->
36        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
37    </style>
38
39    <style name="GlifTheme.Light" parent="SudThemeGlif.Light">
40        <!-- For all AndroidX Alert Dialogs -->
41        <item name="alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
42        <item name="android:windowBackground">?android:attr/colorBackground</item>
43        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
44        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
45        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
46        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
47        <item name="side_margin">0dip</item>
48        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
49        <item name="wifi_signal">@drawable/wifi_signal</item>
50        <item name="wifi_friction">@drawable/wifi_friction</item>
51        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
52        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
53
54        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
55        <item name="*android:colorError">@color/glif_error_color</item>
56    </style>
57
58    <style name="GlifV2Theme" parent="SudThemeGlifV2.DayNight">
59        <!-- For all AndroidX Alert Dialogs -->
60        <item name="alertDialogTheme">@style/GlifV2ThemeAlertDialog</item>
61        <item name="android:windowBackground">?android:attr/colorBackground</item>
62        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
63        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
64        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
65        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
66        <item name="side_margin">0dip</item>
67        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
68        <item name="wifi_signal">@drawable/wifi_signal</item>
69        <item name="wifi_friction">@drawable/wifi_friction</item>
70        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
71        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
72
73        <!-- LockPatternView colors -->
74        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
75    </style>
76
77    <style name="GlifV2Theme.Light" parent="SudThemeGlifV2.Light">
78        <!-- For all AndroidX Alert Dialogs -->
79        <item name="alertDialogTheme">@style/GlifV2ThemeAlertDialog.Light</item>
80        <item name="android:windowBackground">?android:attr/colorBackground</item>
81        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
82        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
83        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
84        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
85        <item name="side_margin">0dip</item>
86        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
87        <item name="wifi_signal">@drawable/wifi_signal</item>
88        <item name="wifi_friction">@drawable/wifi_friction</item>
89        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
90        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
91
92        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
93        <item name="*android:colorError">@color/glif_error_color</item>
94    </style>
95
96    <style name="GlifV3Theme" parent="SudThemeGlifV3.DayNight">
97        <!-- For all AndroidX Alert Dialogs -->
98        <item name="alertDialogTheme">@style/GlifV2ThemeAlertDialog</item>
99        <item name="android:windowBackground">?android:attr/colorBackground</item>
100        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
101        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
102        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
103        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
104        <item name="side_margin">0dip</item>
105        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
106        <item name="wifi_signal">@drawable/wifi_signal</item>
107        <item name="wifi_friction">@drawable/wifi_friction</item>
108        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
109        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
110
111        <!-- LockPatternView colors -->
112        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
113    </style>
114
115    <style name="GlifV3Theme.Light" parent="SudThemeGlifV3.Light">
116        <!-- For all AndroidX Alert Dialogs -->
117        <item name="alertDialogTheme">@style/GlifV2ThemeAlertDialog.Light</item>
118        <item name="android:windowBackground">?android:attr/colorBackground</item>
119        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
120        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
121        <item name="face_layout_theme">@style/FaceLayoutTheme</item>
122        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
123        <item name="side_margin">0dip</item>
124        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
125        <item name="wifi_signal">@drawable/wifi_signal</item>
126        <item name="wifi_friction">@drawable/wifi_friction</item>
127        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
128        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
129
130        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
131        <item name="*android:colorError">@color/glif_error_color</item>
132    </style>
133
134    <style name="GlifV2Theme.Transparent">
135        <item name="android:windowBackground">@android:color/transparent</item>
136        <item name="android:windowNoTitle">true</item>
137        <item name="android:windowIsFloating">true</item>
138        <item name="android:windowAnimationStyle">@null</item>
139    </style>
140
141    <style name="GlifV2Theme.Light.Transparent">
142        <item name="android:windowBackground">@android:color/transparent</item>
143        <item name="android:windowNoTitle">true</item>
144        <item name="android:windowIsFloating">true</item>
145        <item name="android:windowAnimationStyle">@null</item>
146    </style>
147
148    <style name="GlifV2ThemeAlertDialog" parent="SuwAlertDialogThemeCompat">
149        <item name="android:windowSoftInputMode">adjustResize</item>
150    </style>
151
152    <style name="GlifV2ThemeAlertDialog.Light" parent="SuwAlertDialogThemeCompat.Light">
153        <item name="android:windowSoftInputMode">adjustResize</item>
154    </style>
155
156    <style name="GlifV3Theme.Transparent">
157        <item name="android:windowBackground">@android:color/transparent</item>
158        <item name="android:windowNoTitle">true</item>
159        <item name="android:windowIsFloating">true</item>
160        <item name="android:windowAnimationStyle">@null</item>
161    </style>
162
163    <style name="GlifV3Theme.Light.Transparent">
164        <item name="android:windowBackground">@android:color/transparent</item>
165        <item name="android:windowNoTitle">true</item>
166        <item name="android:windowIsFloating">true</item>
167        <item name="android:windowAnimationStyle">@null</item>
168    </style>
169
170    <style name="SetupWizardTheme.Transparent" parent="GlifTheme">
171        <item name="android:windowBackground">@android:color/transparent</item>
172        <item name="android:windowNoTitle">true</item>
173        <item name="android:windowIsFloating">true</item>
174        <item name="android:windowAnimationStyle">@null</item>
175    </style>
176
177    <style name="SetupWizardTheme.Light.Transparent" parent="GlifTheme.Light">
178        <item name="android:windowBackground">@android:color/transparent</item>
179        <item name="android:windowNoTitle">true</item>
180        <item name="android:windowIsFloating">true</item>
181        <item name="android:windowAnimationStyle">@null</item>
182    </style>
183
184    <!-- Accessibility portion of Setup Wizard -->
185    <style name="SetupWizardAccessibilityTheme" parent="Theme.SettingsBase">
186        <item name="android:colorPrimary">@color/material_grey_100</item>
187        <item name="android:colorAccent">@color/material_blue_700</item>
188        <item name="android:titleTextColor">@color/material_blue_700</item>
189        <item name="preferenceTheme">@style/PreferenceTheme</item>
190        <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>
191    </style>
192
193    <style name="SuwAlertDialogThemeCompat" parent="@style/Theme.AppCompat.Dialog.Alert">
194        <!-- copied from Theme.DeviceDefault.Light.Dialog.Alert -->
195        <item name="colorAccent">@*android:color/accent_device_default_light</item>
196        <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item>
197    </style>
198
199    <style name="SuwAlertDialogThemeCompat.Light" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
200        <!-- copied from Theme.DeviceDefault.Light.Dialog.Alert -->
201        <item name="colorAccent">@*android:color/accent_device_default_light</item>
202        <item name="dialogCornerRadius">@*android:dimen/config_dialogCornerRadius</item>
203    </style>
204</resources>