1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2017 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<resources>
18
19    <!-- Main themes -->
20    <style name="WallpaperTheme" parent="@android:style/Theme.DeviceDefault.Settings">
21        <item name="colorPrimary">?android:colorPrimary</item>
22        <item name="colorControlActivated">?attr/colorPrimary</item>
23        <item name="android:statusBarColor">?attr/colorPrimary</item>
24        <item name="android:navigationBarColor">@android:color/transparent</item>
25        <item name="android:navigationBarDividerColor">@android:color/transparent</item>
26        <item name="android:windowLightStatusBar">false</item>
27
28        <item name="actionBarSize">?android:attr/actionBarSize</item>
29        <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item>
30
31        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
32        <item name="dialogPreferredPadding">24dp</item>
33        <item name="colorControlHighlight">@color/ripple_material_dark</item>
34        <item name="windowActionBar">false</item>
35        <item name="windowNoTitle">true</item>
36        <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation
37        </item>
38
39        <item name="android:windowActionBar">false</item>
40        <item name="android:windowNoTitle">true</item>
41        <item name="android:fitsSystemWindows">false</item>
42        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
43    </style>
44
45    <style name="WallpaperTheme.NoBackground">
46        <item name="android:windowBackground">@android:color/transparent</item>
47        <item name="android:windowContentOverlay">@null</item>
48        <item name="android:windowDisablePreview">true</item>
49    </style>
50
51    <style name="WallpaperTheme.Preview" parent="@android:style/Theme.DeviceDefault.Settings">
52        <item name="android:colorPrimary">@color/material_white_100</item>
53        <item name="colorPrimary">@color/material_white_100</item>
54        <item name="colorControlActivated">?attr/colorPrimary</item>
55        <item name="android:windowBackground">@android:color/transparent</item>
56        <item name="android:windowContentOverlay">@null</item>
57        <item name="android:windowDisablePreview">true</item>
58
59        <!-- Set no title and no action bar because we use a toolbar instead. -->
60        <item name="windowActionBar">false</item>
61        <item name="windowNoTitle">true</item>
62        <item name="android:windowActionBar">false</item>
63        <item name="android:windowNoTitle">true</item>
64
65        <item name="actionBarSize">?android:attr/actionBarSize</item>
66        <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item>
67
68        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
69        <item name="dialogPreferredPadding">24dp</item>
70        <item name="colorControlHighlight">@color/ripple_material_dark</item>
71        <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation
72        </item>
73
74        <!-- Set status bar and navigation buttons to be translucent. -->
75        <item name="android:colorPrimaryDark">@color/translucent_black</item>
76        <item name="android:statusBarColor">@android:color/transparent</item>
77        <item name="android:navigationBarColor">@android:color/transparent</item>
78
79        <!-- Apply borderless button style for the right ripple effect. -->
80        <item name="borderlessButtonStyle">@android:style/Widget.DeviceDefault.Button.Borderless
81        </item>
82
83        <item name="android:actionBarItemBackground">
84            ?android:attr/selectableItemBackgroundBorderless
85        </item>
86    </style>
87
88    <!-- Dialog themes -->
89    <style name="LightDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
90        <item name="android:layout">@layout/abc_alert_dialog_material</item>
91        <item name="windowActionBar">false</item>
92        <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
93        <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
94        <item name="android:dialogCornerRadius">24dp</item>
95    </style>
96
97    <style name="ResetDialogTheme" parent="LightDialogTheme">
98        <item name="android:colorBackground">@color/system_surface_bright</item>
99    </style>
100
101    <style name="ProgressDialogThemePreL" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
102        <item name="android:windowBackground">@android:color/transparent</item>
103    </style>
104
105    <!-- Text appearance -->
106    <style name="TitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"/>
107
108    <style name="SubtitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Subtitle"/>
109
110    <style name="SeparatedTabsTextAppearance" parent="TitleTextAppearance">
111        <item name="android:textStyle" />
112        <item name="textAllCaps">false</item>
113        <item name="android:textSize">14sp</item>
114        <item name="android:letterSpacing">0.02</item>
115    </style>
116
117    <style name="CategorySectionTitleTextAppearance" parent="TitleTextAppearance">
118        <item name="android:color">@color/system_on_surface</item>
119        <item name="android:textStyle" />
120        <item name="textAllCaps">false</item>
121        <item name="android:textSize">16sp</item>
122        <item name="android:textFontWeight">500</item>
123    </style>
124
125    <!-- Individual components / Widgets -->
126    <style name="OutlinedButtonStyle"  parent="@android:style/Widget.DeviceDefault.Button">
127        <item name="android:background">@drawable/btn_transparent</item>
128        <item name="android:textColor">?android:attr/colorAccent</item>
129    </style>
130
131    <style name="ExploreButtonStyle"  parent="OutlinedButtonStyle">
132        <item name="android:insetLeft">0dp</item>
133        <item name="android:insetRight">0dp</item>
134        <item name="android:minWidth">0dp</item>
135        <item name="android:minHeight">@dimen/touch_target_min_height</item>
136        <item name="android:textSize">16sp</item>
137    </style>
138
139    <!-- Preview attribution pane styles -->
140    <style name="WallpaperPicker.BottomPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings"/>
141
142    <style name="WallpaperPicker.FloatingPaneStyle"
143        parent="@android:style/Theme.DeviceDefault.Settings" />
144
145    <!-- Preview customization pane styles -->
146    <style name="WallpaperPicker.CustomizationPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings">
147        <item name="tabTextAppearance">@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps</item>
148        <item name="tabIndicatorColor">?android:attr/textColorPrimary</item>
149        <item name="tabGravity">fill</item>
150        <item name="tabMaxWidth">0dp</item>
151    </style>
152
153    <style name="WallpaperPicker.Preview.TextAppearance.NoAllCaps"
154        parent="@android:style/TextAppearance.DeviceDefault.Widget.TabWidget">
155        <item name="android:textAllCaps">false</item>
156    </style>
157
158    <!-- Set wallpaper destination item -->
159    <!-- Studio can't directly reference ?androidprv:attr/textColorOnAccent here,
160     so we set the text color on the dialog items instead. -->
161    <style name="set_wallpaper_destination_item">
162        <item name="android:fontFamily">@*android:string/config_bodyFontFamilyMedium</item>
163        <item name="android:minHeight">@dimen/set_wallpaper_dialog_item_min_height</item>
164        <item name="android:minWidth">@dimen/set_wallpaper_dialog_item_min_width</item>
165        <item name="android:textAlignment">center</item>
166        <item name="android:textSize">@dimen/abc_text_size_small_material</item>
167        <item name="android:letterSpacing">0.02</item>
168        <item name="android:gravity">center</item>
169        <item name="android:background">@drawable/dialog_option_background</item>
170    </style>
171
172    <!-- Desktop UI - category tabs layout -->
173    <style name="CategoryTabLayout" parent="Widget.Design.TabLayout">
174        <item name="tabIndicatorColor">@color/material_white_100</item>
175        <item name="tabIndicatorHeight">2dp</item>
176        <item name="tabTextAppearance">@style/CategoryTabTextAppearance</item>
177    </style>
178
179    <style name="CategoryTabTextAppearance" parent="TextAppearance.Design.Tab">
180        <item name="android:textColor">@color/white_67_alpha</item>
181        <item name="android:textSize">@dimen/category_tab_text_size</item>
182        <item name="textAllCaps">false</item>
183    </style>
184
185    <!-- Preview cards -->
186    <style name="PreviewCard" parent="CardView">
187        <item name="cardCornerRadius">?android:dialogCornerRadius</item>
188        <item name="android:clipChildren">true</item>
189        <item name="contentPadding">@dimen/preview_card_padding</item>
190        <item name="cardElevation">0dp</item>
191    </style>
192
193    <style name="FullContentPreviewCard" parent="PreviewCard">
194        <item name="contentPadding">0dp</item>
195    </style>
196
197    <!-- Bottom action item -->
198    <style name="BottomActionItemStyle">
199        <item name="android:paddingHorizontal">@dimen/bottom_action_button_padding_horizontal</item>
200    </style>
201
202    <!-- Option tiles -->
203    <style name="OptionTitleTextAppearance" parent="TitleTextAppearance">
204        <item name="android:textColor">@color/option_title_color</item>
205        <item name="android:textAlignment">center</item>
206        <item name="android:textSize">@dimen/option_title_font_text_size</item>
207        <item name="android:lineHeight">@dimen/option_title_line_height</item>
208    </style>
209
210    <!-- Labeled tiles -->
211    <style name="GridLabelTextAppearance" parent="TitleTextAppearance">
212        <item name="android:textColor">@color/text_color_light</item>
213        <item name="android:textAlignment">center</item>
214        <item name="android:textSize">@dimen/grid_label_font_text_size</item>
215        <item name="android:lineHeight">@dimen/grid_label_line_height</item>
216        <item name="android:textAllCaps">false</item>
217    </style>
218
219    <!-- Preview header -->
220    <style name="PreviewHeaderStyle">
221        <item name="android:paddingBottom">?android:attr/actionBarSize</item>
222    </style>
223
224    <!-- Screen preview layout -->
225    <style name="ScreenPreviewLayoutStyle">
226        <item name="android:layout_marginTop">?android:attr/actionBarSize</item>
227    </style>
228
229    <!-- CollapsingToolbarTitle -->
230    <style name="CollapsingToolbar.Collapsed"
231        parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
232        <item name="android:fontFamily">google-sans</item>
233        <item name="android:textSize">20sp</item>
234        <item name="android:textColor">@color/settingslib_text_color_primary_device_default</item>
235    </style>
236
237    <style name="CollapsingToolbar.Expanded" parent="CollapsingToolbarTitle.Collapsed">
238        <item name="android:fontFamily">google-sans</item>
239        <item name="android:textSize">36sp</item>
240        <item name="android:textColor">@color/settingslib_text_color_primary_device_default</item>
241    </style>
242
243    <!-- SetWallpaperPreviewDialog -->
244    <style name="SetWallpaperPreviewDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
245        <item name="android:windowMinWidthMajor">0dp</item>
246        <item name="android:windowMinWidthMinor">0dp</item>
247        <item name="android:buttonBarPositiveButtonStyle">@style/SetWallpaperDialog.Button</item>
248        <item name="android:buttonBarNegativeButtonStyle">@style/SetWallpaperDialog.Button.OutlinedButton</item>
249        <item name="android:buttonBarNeutralButtonStyle">@style/SetWallpaperDialog.Button.TextButton</item>
250    </style>
251
252    <style name="SetWallpaperDialog"/>
253    <style name="SetWallpaperDialog.Button">
254        <item name="android:textColor">@color/system_on_secondary</item>
255        <item name="android:background">@drawable/set_wallpaper_dialog_button</item>
256    </style>
257
258    <style name="SetWallpaperDialog.Button.OutlinedButton">
259        <item name="android:textColor">@color/system_on_surface</item>
260        <item name="android:background">@drawable/set_wallpaper_dialog_outlined_button</item>
261    </style>
262
263    <style name="SetWallpaperDialog.Button.TextButton">
264        <item name="android:textColor">@color/system_secondary</item>
265        <item name="android:background">@drawable/set_wallpaper_dialog_text_button</item>
266    </style>
267
268    <style name="TextAppearance.SetWallpaperDialog.Title" parent="@android:style/TextAppearance.DeviceDefault.Large">
269        <item name="android:textColor">@color/system_on_surface_variant</item>
270        <item name="android:textSize">24sp</item>
271        <item name="android:gravity">center</item>
272        <item name="android:textAlignment">center</item>
273        <item name="android:paddingVertical">@dimen/abc_dialog_padding_top_material</item>
274        <item name="android:paddingHorizontal">?attr/dialogPreferredPadding</item>
275    </style>
276
277    <style name="TextAppearance.SetWallpaperDialog.Subtitle" parent="@android:style/TextAppearance.DeviceDefault.Small">
278        <item name="android:textColor">@color/system_on_surface</item>
279        <item name="android:gravity">center</item>
280        <item name="android:textAlignment">center</item>
281        <item name="android:paddingVertical">8dp</item>
282    </style>
283</resources>
284