1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4* Copyright (C) 2008 The Android Open Source Project
5*
6* Licensed under the Apache License, Version 2.0 (the "License");
7* you may not use this file except in compliance with the License.
8* You may obtain a copy of the License at
9*
10*      http://www.apache.org/licenses/LICENSE-2.0
11*
12* Unless required by applicable law or agreed to in writing, software
13* distributed under the License is distributed on an "AS IS" BASIS,
14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15* See the License for the specific language governing permissions and
16* limitations under the License.
17*/
18-->
19
20<resources>
21    <!-- Launcher theme -->
22    <style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.Light">
23        <item name="android:colorBackgroundCacheHint">@null</item>
24        <item name="android:colorEdgeEffect">#FF757575</item>
25        <item name="android:windowActionBar">false</item>
26        <item name="android:windowBackground">@android:color/transparent</item>
27        <item name="android:windowNoTitle">true</item>
28        <item name="android:windowShowWallpaper">true</item>
29        <item name="folderTextColor">?attr/workspaceTextColor</item>
30    </style>
31
32    <style name="LauncherTheme" parent="@style/BaseLauncherTheme">
33        <item name="android:textColorSecondary">#DE000000</item>
34        <item name="allAppsScrimColor">#FFFFFFFF</item>
35        <item name="allAppsInterimScrimAlpha">46</item>
36        <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
37        <item name="allAppsTheme">@style/AllAppsTheme</item>
38        <item name="popupColorPrimary">#FFF</item>
39        <item name="popupColorSecondary">#F1F3F4</item>
40        <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
41        <item name="isMainColorDark">false</item>
42        <item name="isWorkspaceDarkText">false</item>
43        <item name="workspaceTextColor">@android:color/white</item>
44        <item name="workspaceShadowColor">#B0000000</item>
45        <item name="workspaceAmbientShadowColor">#33000000</item>
46        <item name="workspaceKeyShadowColor">#44000000</item>
47        <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
48        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
49        <item name="folderDotColor">?android:attr/colorPrimary</item>
50        <item name="folderFillColor">#CDFFFFFF</item>
51        <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
52        <item name="folderTextColor">#FF212121</item>
53        <item name="folderHintColor">#89616161</item>
54        <item name="loadingIconColor">#CCFFFFFF</item>
55        <item name="iconOnlyShortcutColor">?android:attr/textColorSecondary</item>
56        <item name="workProfileOverlayTextColor">#FF212121</item>
57        <item name="eduHalfSheetBGColor">?android:attr/colorAccent</item>
58        <item name="disabledIconAlpha">.54</item>
59
60        <item name="android:windowTranslucentStatus">false</item>
61        <item name="android:windowTranslucentNavigation">false</item>
62        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
63        <item name="android:statusBarColor">#00000000</item>
64        <item name="android:navigationBarColor">#00000000</item>
65
66
67    </style>
68
69    <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme">
70        <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
71        <item name="folderTextColor">?attr/workspaceTextColor</item>
72        <item name="disabledIconAlpha">.254</item>
73
74    </style>
75
76    <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
77        <item name="workspaceTextColor">#FF212121</item>
78        <item name="allAppsInterimScrimAlpha">128</item>
79        <item name="workspaceShadowColor">@android:color/transparent</item>
80        <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
81        <item name="workspaceKeyShadowColor">@android:color/transparent</item>
82        <item name="isWorkspaceDarkText">true</item>
83        <item name="workspaceStatusBarScrim">@null</item>
84        <item name="folderDotColor">#FF464646</item>
85        <item name="folderFillColor">#CDFFFFFF</item>
86        <item name="folderIconBorderColor">#FF80868B</item>
87        <item name="folderTextColor">?attr/workspaceTextColor</item>
88    </style>
89
90    <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
91        <item name="android:textColorPrimary">#FFFFFFFF</item>
92        <item name="android:textColorSecondary">#FFFFFFFF</item>
93        <item name="android:textColorTertiary">#CCFFFFFF</item>
94        <item name="android:textColorHint">#A0FFFFFF</item>
95        <item name="android:colorControlHighlight">#A0FFFFFF</item>
96        <item name="android:colorPrimary">#FF212121</item>
97        <item name="allAppsScrimColor">#FF000000</item>
98        <item name="allAppsInterimScrimAlpha">102</item>
99        <item name="allAppsNavBarScrimColor">#80000000</item>
100        <item name="allAppsTheme">@style/AllAppsTheme.Dark</item>
101        <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 -->
102        <item name="popupColorSecondary">#202124</item>
103        <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
104        <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
105        <item name="folderDotColor">#FF464646</item>
106        <item name="folderFillColor">#DD3C4043</item> <!-- 87% GM2 800 -->
107        <item name="folderIconBorderColor">#FF80868B</item>
108        <item name="folderTextColor">@android:color/white</item>
109        <item name="folderHintColor">#89CCCCCC</item>
110        <item name="isMainColorDark">true</item>
111        <item name="loadingIconColor">#99FFFFFF</item>
112        <item name="iconOnlyShortcutColor">#B3FFFFFF</item>
113        <item name="workProfileOverlayTextColor">@android:color/white</item>
114        <item name="eduHalfSheetBGColor">#DD000000</item>
115    </style>
116
117    <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark">
118        <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
119        <item name="folderTextColor">@android:color/white</item>
120        <item name="disabledIconAlpha">.54</item>
121    </style>
122
123    <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
124        <item name="android:colorControlHighlight">#75212121</item>
125        <item name="allAppsInterimScrimAlpha">25</item>
126        <item name="folderFillColor">#CDFFFFFF</item>
127        <item name="folderTextColor">?attr/workspaceTextColor</item>
128        <item name="workspaceTextColor">#FF212121</item>
129        <item name="workspaceShadowColor">@android:color/transparent</item>
130        <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
131        <item name="workspaceKeyShadowColor">@android:color/transparent</item>
132        <item name="isWorkspaceDarkText">true</item>
133        <item name="workspaceStatusBarScrim">@null</item>
134    </style>
135
136    <!-- A derivative project can extend these themes to customize the application theme without
137         affecting the base theme -->
138    <style name="AppTheme" parent="@style/LauncherTheme" />
139    <style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
140    <style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
141
142    <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
143    <style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
144    <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
145
146    <style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
147        <item name="widgetsTheme">@style/WidgetContainerTheme</item>
148    </style>
149
150    <style name="HomeSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings">
151        <item name="android:navigationBarColor">@android:color/transparent</item>
152    </style>
153
154    <!--
155    Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
156    Various foreground colors are overridden to be workspaceTextColor so that they are properly
157    visible on various wallpapers.
158    -->
159    <style name="HomeScreenElementTheme">
160        <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
161        <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
162        <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
163    </style>
164
165    <!-- Theme for the widget container. Overridden on API 26. -->
166    <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
167        <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
168        <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
169        <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
170    </style>
171
172    <style name="WidgetContainerTheme.Dark" />
173
174    <style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
175        <item name="android:layout_width">wrap_content</item>
176        <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
177        <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
178        <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
179        <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
180        <item name="android:gravity">center</item>
181        <item name="android:alpha">0</item>
182        <item name="android:elevation">3dp</item>
183        <item name="android:saveEnabled">false</item>
184        <item name="android:textColor">@android:color/white</item>
185        <item name="android:includeFontPadding">false</item>
186        <item name="android:importantForAccessibility">no</item>
187    </style>
188
189    <style name="AllAppsTheme">
190        <item name="disabledIconAlpha">.54</item>
191    </style>
192
193    <style name="AllAppsTheme.Dark">
194        <item name="disabledIconAlpha">.54</item>
195    </style>
196
197
198    <style name="BaseIconUnBounded" parent="@android:style/TextAppearance.DeviceDefault">
199        <item name="android:layout_width">match_parent</item>
200        <item name="android:layout_height">match_parent</item>
201        <item name="android:layout_gravity">center</item>
202        <item name="android:focusable">true</item>
203        <item name="android:gravity">center_horizontal</item>
204        <item name="android:textColor">?android:attr/textColorSecondary</item>
205        <item name="android:defaultFocusHighlightEnabled">false</item>
206        <!-- No shadows in the base theme -->
207        <item name="android:shadowRadius">0</item>
208    </style>
209
210    <!-- Base theme for BubbleTextView and sub classes -->
211    <style name="BaseIcon" parent="BaseIconUnBounded">
212        <item name="android:lines">1</item>
213    </style>
214
215    <!-- Icon displayed on the workspace -->
216    <style name="BaseIcon.Workspace" >
217        <item name="android:shadowRadius">2.0</item>
218        <item name="android:shadowColor">?attr/workspaceShadowColor</item>
219        <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
220        <item name="ambientShadowBlur">2.5dp</item>
221        <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
222        <item name="keyShadowBlur">1dp</item>
223        <item name="keyShadowOffset">.5dp</item>
224    </style>
225
226    <!-- Theme for the popup container -->
227    <style name="PopupItem">
228        <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
229    </style>
230
231    <!-- Drop targets -->
232    <style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault">
233        <item name="android:drawablePadding">7.5dp</item>
234        <item name="android:paddingLeft">16dp</item>
235        <item name="android:paddingRight">16dp</item>
236        <item name="android:textColor">?attr/workspaceTextColor</item>
237        <item name="android:textSize">@dimen/drop_target_text_size</item>
238        <item name="android:singleLine">true</item>
239        <item name="android:ellipsize">end</item>
240        <item name="android:shadowColor">?attr/workspaceShadowColor</item>
241        <item name="android:shadowDx">0.0</item>
242        <item name="android:shadowDy">1.0</item>
243        <item name="android:shadowRadius">4.0</item>
244    </style>
245
246    <style name="DropTargetButton" parent="DropTargetButtonBase" />
247
248    <style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
249    <style name="PrimaryHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"/>
250
251    <style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
252
253    <style name="AllAppsEmptySearchBackground">
254        <item name="android:colorPrimary">#E0E0E0</item>
255        <item name="android:colorControlHighlight">#BDBDBD</item>
256        <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
257    </style>
258    <style name="AllAppsEmptySearchBackground.Dark">
259        <item name="android:colorPrimary">#9AA0A6</item>
260        <item name="android:colorControlHighlight">#DFE1E5</item>
261        <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
262    </style>
263</resources>
264