1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2018 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<!--
18===============================================================
19                        PLEASE READ
20===============================================================
21This file contains the themes that are the Device Defaults.
22If you want to edit themes to skin your device, do it here.
23We recommend that you do not edit themes.xml and instead edit
24this file.
25
26Editing this file instead of themes.xml will greatly simplify
27merges for future platform versions and CTS compliance will be
28easier.
29===============================================================
30                        PLEASE READ
31===============================================================
32 -->
33<resources>
34
35    <!-- The dark default theme for apps that target API level XX and higher.
36         <p>The DeviceDefault themes are aliases for a specific device’s native look and feel. The
37         DeviceDefault theme family and widget style family offer ways for you to target your app
38         to a device’s native theme with all device customizations intact.</p>
39         <p>For example, when you set your app's {@code targetSdkVersion} to XX or higher, this
40         theme is applied to your application by default. As such, your app might appear with the
41         {@link #Theme_Material Material} styles on one device, but with a different set of styles on
42         another device. This is great if you want your app to fit with the device's native look and
43         feel. If, however, you prefer to keep your UI style the same across all devices, you should
44         apply a specific theme such as {@link #Theme_Material Material} or one of your own design.
45         For more information, read <a
46         href="http://android-developers.blogspot.com/20XX/XX/material-everywhere.html">Material
47         Everywhere</a>.</p>
48         <p>Styles used by the DeviceDefault theme are named using the convention
49         Type.DeviceDefault.Etc (for example, {@code Widget.DeviceDefault.Button} and
50         {@code TextAppearance.DeviceDefault.Widget.PopupMenu.Large}).</p>
51          -->
52    <!-- DeviceDefault theme for a window that should look like the Settings app.  -->
53    <style name="Theme.DeviceDefault.Settings" parent="Theme.DeviceDefault">
54        <item name="windowLightStatusBar">false</item>
55        <item name="navigationBarColor">@android:color/black</item>
56        <item name="windowLightNavigationBar">false</item>
57
58        <item name="colorPrimary">@color/primary_dark_device_default_settings</item>
59        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
60        <item name="colorBackground">@color/primary_dark_device_default_settings</item>
61        <item name="colorEdgeEffect">@color/edge_effect_device_default_dark</item>
62
63        <item name="colorListDivider">@color/list_divider_color_dark</item>
64        <item name="opacityListDivider">@color/list_divider_opacity_device_default_dark</item>
65    </style>
66
67    <style name="Theme.DeviceDefault.Settings.DialogBase" parent="Theme.Material.BaseDialog">
68        <!-- Color palette -->
69        <item name="colorPrimary">@color/primary_dark_device_default_settings</item>
70        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
71        <item name="colorSecondary">@color/secondary_device_default_settings</item>
72        <item name="colorAccent">@color/accent_device_default_dark</item>
73        <item name="colorError">@color/error_color_device_default_dark</item>
74
75        <!-- Dialog attributes -->
76        <item name="alertDialogTheme">@style/Theme.DeviceDefault.Dialog.Alert</item>
77    </style>
78
79    <!-- Theme for the dialog shown when an app crashes or ANRs. -->
80    <style name="Theme.DeviceDefault.Dialog.AppError" parent="Theme.DeviceDefault.Dialog.Alert" />
81    <style name="Theme.DeviceDefault.Dialog.Alert.DayNight" parent="Theme.DeviceDefault.Dialog.Alert" />
82
83    <style name="Theme.DeviceDefault.DayNight" parent="Theme.DeviceDefault" />
84
85    <style name="ThemeOverlay.DeviceDefault.Accent.DayNight"
86           parent="@style/ThemeOverlay.DeviceDefault.Accent" />
87
88    <style name="Theme.DeviceDefault.Resolver" parent="Theme.DeviceDefault.ResolverCommon">
89        <item name="windowLightNavigationBar">false</item>
90        <item name="colorBackgroundFloating">@android:color/GM2_grey_800</item>
91        <item name="textColorSecondary">@android:color/resolver_text_color_secondary_dark</item>
92    </style>
93
94    <!-- @hide DeviceDefault theme for the Autofill half screen dialog UI.  -->
95    <style name="Theme.DeviceDefault.AutofillHalfScreenDialogButton" parent="Theme.DeviceDefault.Panel">
96        <item name="selectableItemBackground">@android:color/transparent</item>
97        <item name="colorAccentPrimaryVariant">@color/system_accent1_200</item>
98        <item name="colorAccentPrimary">@color/system_accent1_700</item>
99        <item name="textColorPrimary">@color/system_neutral1_100</item>
100        <item name="textColorSecondary">@color/system_neutral2_100</item>
101        <item name="colorListDivider">@color/white</item>
102    </style>
103
104    <style name="Theme.DeviceDefault.AutofillHalfScreenDialogList" parent="Theme.DeviceDefault.DayNight">
105        <item name="colorForeground">@android:color/white</item>
106    </style>
107</resources>
108