• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2     Copyright (C) 2017 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<resources>
17
18    <!-- Main themes -->
19    <style name="WallpaperTheme" parent="@android:style/Theme.DeviceDefault.Settings">
20        <item name="colorPrimary">?android:colorPrimary</item>
21        <item name="colorControlActivated">?attr/colorPrimary</item>
22        <item name="android:statusBarColor">?attr/colorPrimary</item>
23        <item name="android:navigationBarColor">@color/translucent_black</item>
24        <item name="android:navigationBarDividerColor">@android:color/transparent</item>
25        <item name="android:windowLightStatusBar">false</item>
26
27        <item name="actionBarSize">?android:attr/actionBarSize</item>
28        <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item>
29
30        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
31        <item name="dialogPreferredPadding">24dp</item>
32        <item name="colorControlHighlight">@color/ripple_material_dark</item>
33        <item name="windowActionBar">false</item>
34        <item name="windowNoTitle">true</item>
35        <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation
36        </item>
37
38        <item name="android:windowActionBar">false</item>
39        <item name="android:windowNoTitle">true</item>
40        <item name="android:fitsSystemWindows">false</item>
41        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
42    </style>
43
44    <style name="WallpaperTheme.NoBackground">
45        <item name="android:windowBackground">@android:color/transparent</item>
46        <item name="android:windowContentOverlay">@null</item>
47        <item name="android:windowDisablePreview">true</item>
48    </style>
49
50    <style name="WallpaperTheme.Preview" parent="@android:style/Theme.DeviceDefault.Settings">
51        <item name="android:colorPrimary">@color/material_white_100</item>
52        <item name="colorPrimary">@color/material_white_100</item>
53        <item name="colorControlActivated">?attr/colorPrimary</item>
54        <item name="android:windowBackground">@android:color/transparent</item>
55        <item name="android:windowContentOverlay">@null</item>
56        <item name="android:windowDisablePreview">true</item>
57
58        <!-- Set no title and no action bar because we use a toolbar instead. -->
59        <item name="windowActionBar">false</item>
60        <item name="windowNoTitle">true</item>
61        <item name="android:windowActionBar">false</item>
62        <item name="android:windowNoTitle">true</item>
63
64        <item name="actionBarSize">?android:attr/actionBarSize</item>
65        <item name="homeAsUpIndicator">@drawable/material_ic_arrow_back_black_24</item>
66
67        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
68        <item name="dialogPreferredPadding">24dp</item>
69        <item name="colorControlHighlight">@color/ripple_material_dark</item>
70        <item name="toolbarNavigationButtonStyle">@android:style/Widget.Toolbar.Button.Navigation
71        </item>
72
73        <!-- Set status bar and navigation buttons to be translucent. -->
74        <item name="android:colorPrimaryDark">@color/translucent_black</item>
75        <item name="android:statusBarColor">@android:color/transparent</item>
76        <item name="android:navigationBarColor">@android:color/transparent</item>
77
78        <!-- Apply borderless button style for the right ripple effect. -->
79        <item name="borderlessButtonStyle">@android:style/Widget.DeviceDefault.Button.Borderless
80        </item>
81
82        <item name="android:actionBarItemBackground">
83            ?android:attr/selectableItemBackgroundBorderless
84        </item>
85    </style>
86
87    <!-- Dialog themes -->
88    <style name="LightDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
89        <item name="android:layout">@layout/abc_alert_dialog_material</item>
90        <item name="windowActionBar">false</item>
91        <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
92        <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
93        <item name="android:dialogCornerRadius">24dp</item>
94    </style>
95
96    <style name="ProgressDialogThemePreL" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
97        <item name="android:windowBackground">@android:color/transparent</item>
98    </style>
99
100    <!-- Text appearance -->
101    <style name="TitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"/>
102
103    <style name="SubtitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Subtitle"/>
104
105    <style name="SeparatedTabsTextAppearance" parent="TitleTextAppearance">
106        <item name="android:textStyle" />
107        <item name="textAllCaps">false</item>
108        <item name="android:textSize">14sp</item>
109        <item name="android:letterSpacing">0.02</item>
110    </style>
111
112    <!-- Individual components / Widgets -->
113    <style name="OutlinedButtonStyle"  parent="@android:style/Widget.DeviceDefault.Button">
114        <item name="android:background">@drawable/btn_transparent</item>
115        <item name="android:textColor">?android:attr/colorAccent</item>
116    </style>
117
118    <style name="ExploreButtonStyle"  parent="OutlinedButtonStyle">
119        <item name="android:insetLeft">0dp</item>
120        <item name="android:insetRight">0dp</item>
121        <item name="android:minWidth">0dp</item>
122        <item name="android:minHeight">22sp</item>
123        <item name="android:textSize">16sp</item>
124    </style>
125
126    <!-- Preview attribution pane styles -->
127    <style name="WallpaperPicker.BottomPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings"/>
128
129    <!-- Preview customization pane styles -->
130    <style name="WallpaperPicker.CustomizationPaneStyle" parent="@android:style/Theme.DeviceDefault.Settings">
131        <item name="tabTextAppearance">@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps</item>
132        <item name="tabIndicatorColor">?android:attr/textColorPrimary</item>
133        <item name="tabGravity">fill</item>
134        <item name="tabMaxWidth">0dp</item>
135    </style>
136
137    <style name="WallpaperPicker.Preview.TextAppearance.NoAllCaps"
138        parent="@android:style/TextAppearance.DeviceDefault.Widget.TabWidget">
139        <item name="android:textAllCaps">false</item>
140    </style>
141
142    <!-- Set wallpaper destination item -->
143    <!-- Studio can't directly reference ?androidprv:attr/textColorOnAccent here,
144     so we set the text color on the dialog items instead. -->
145    <style name="set_wallpaper_destination_item">
146        <item name="android:fontFamily">@*android:string/config_bodyFontFamilyMedium</item>
147        <item name="android:minHeight">@dimen/set_wallpaper_dialog_item_min_height</item>
148        <item name="android:minWidth">@dimen/set_wallpaper_dialog_item_min_width</item>
149        <item name="android:textAlignment">center</item>
150        <item name="android:textSize">@dimen/abc_text_size_small_material</item>
151        <item name="android:letterSpacing">0.02</item>
152        <item name="android:gravity">center</item>
153        <item name="android:background">@drawable/dialog_option_background</item>
154    </style>
155
156    <!-- Desktop UI - category tabs layout -->
157    <style name="CategoryTabLayout" parent="Widget.Design.TabLayout">
158        <item name="tabIndicatorColor">@color/material_white_100</item>
159        <item name="tabIndicatorHeight">2dp</item>
160        <item name="tabTextAppearance">@style/CategoryTabTextAppearance</item>
161    </style>
162
163    <style name="CategoryTabTextAppearance" parent="TextAppearance.Design.Tab">
164        <item name="android:textColor">@color/white_67_alpha</item>
165        <item name="android:textSize">@dimen/category_tab_text_size</item>
166        <item name="textAllCaps">false</item>
167    </style>
168
169    <!-- Preview cards -->
170    <style name="PreviewCard" parent="CardView">
171        <item name="cardCornerRadius">?android:dialogCornerRadius</item>
172        <item name="android:clipChildren">true</item>
173        <item name="contentPadding">@dimen/preview_card_padding</item>
174        <item name="cardElevation">0dp</item>
175    </style>
176
177    <style name="FullContentPreviewCard" parent="PreviewCard">
178        <item name="contentPadding">0dp</item>
179    </style>
180
181    <!-- Bottom action item -->
182    <style name="BottomActionItemStyle">
183        <item name="android:paddingHorizontal">@dimen/bottom_action_button_padding_horizontal</item>
184    </style>
185
186    <!-- Option tiles -->
187    <style name="OptionTitleTextAppearance" parent="TitleTextAppearance">
188        <item name="android:textColor">@color/option_title_color</item>
189        <item name="android:textAlignment">center</item>
190        <item name="android:textSize">@dimen/option_title_font_text_size</item>
191        <item name="android:lineHeight">@dimen/option_title_line_height</item>
192    </style>
193
194</resources>
195