blob: 8116e30ef14e42b01c9f7c68e04e193b9576b63f [file] [log] [blame]
The Android Open Source Project31dd5032009-03-03 19:32:27 -08001<?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>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080021 <!-- Launcher theme -->
Hyunyoung Song572c7462019-04-13 02:40:31 -070022 <style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.DayNight">
Sunny Goyal5abb9f82016-02-09 15:22:42 -080023 <item name="android:colorBackgroundCacheHint">@null</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080024 <item name="android:colorEdgeEffect">#FF757575</item>
Hyunyoung Song572c7462019-04-13 02:40:31 -070025 <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>
Hyunyoung Songe751d902019-05-13 23:23:05 -070029 <item name="folderTextColor">?attr/workspaceTextColor</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070030 </style>
31
Sunny Goyal367f2192018-10-17 11:24:48 -070032 <style name="LauncherTheme" parent="@style/BaseLauncherTheme">
Sunny Goyal36d090d2018-04-26 13:51:18 -070033 <item name="allAppsScrimColor">#EAFFFFFF</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070034 <item name="allAppsInterimScrimAlpha">46</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070035 <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070036 <item name="popupColorPrimary">#FFF</item>
37 <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
38 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070039 <item name="isMainColorDark">false</item>
40 <item name="isWorkspaceDarkText">false</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070041 <item name="workspaceTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070042 <item name="workspaceShadowColor">#B0000000</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070043 <item name="workspaceAmbientShadowColor">#33000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070044 <item name="workspaceKeyShadowColor">#44000000</item>
45 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Tony Wickham093c3ac2017-06-26 10:48:41 -070046 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -080047 <item name="folderDotColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070048 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080049 <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070050 <item name="folderTextColor">#FF212121</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -070051 <item name="loadingIconColor">#CCFFFFFF</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080052
Sunny Goyal367f2192018-10-17 11:24:48 -070053 <item name="android:windowTranslucentStatus">false</item>
54 <item name="android:windowTranslucentNavigation">false</item>
55 <item name="android:windowDrawsSystemBarBackgrounds">true</item>
56 <item name="android:statusBarColor">#00000000</item>
57 <item name="android:navigationBarColor">#00000000</item>
58 </style>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080059
Hyunyoung Songe751d902019-05-13 23:23:05 -070060 <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme">
61 <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
62 <item name="folderTextColor">?attr/workspaceTextColor</item>
63 </style>
64
Sunny Goyala6afdff2018-05-24 13:49:57 -070065 <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
Mario Bertschlera6936942017-05-31 14:48:19 -070066 <item name="workspaceTextColor">#FF212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070067 <item name="allAppsInterimScrimAlpha">128</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070068 <item name="workspaceShadowColor">@android:color/transparent</item>
69 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
70 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
71 <item name="isWorkspaceDarkText">true</item>
72 <item name="workspaceStatusBarScrim">@null</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080073 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070074 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080075 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070076 <item name="folderTextColor">?attr/workspaceTextColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070077 </style>
78
Sunny Goyalbd88f392018-06-07 15:42:57 -070079 <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070080 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070081 <item name="android:textColorSecondary">#FFFFFFFF</item>
82 <item name="android:textColorTertiary">#CCFFFFFF</item>
83 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070084 <item name="android:colorControlHighlight">#A0FFFFFF</item>
Sunny Goyal12f80382018-05-14 15:57:59 -070085 <item name="android:colorPrimary">#FF212121</item>
Sunny Goyal36d090d2018-04-26 13:51:18 -070086 <item name="allAppsScrimColor">#EA212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070087 <item name="allAppsInterimScrimAlpha">102</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070088 <item name="allAppsNavBarScrimColor">#80000000</item>
Hyunyoung Songbaa1a622019-04-11 23:31:51 -070089 <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 -->
90 <item name="popupColorSecondary">#5F6368</item> <!-- Gray 700 -->
Tony Wickham90038eb2017-06-06 15:42:32 -070091 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Tony Wickham093c3ac2017-06-26 10:48:41 -070092 <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -080093 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070094 <item name="folderFillColor">#DD3C4043</item> <!-- 87% GM2 800 -->
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080095 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070096 <item name="folderTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070097 <item name="isMainColorDark">true</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -070098 <item name="loadingIconColor">#99FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070099 </style>
100
Hyunyoung Songe751d902019-05-13 23:23:05 -0700101 <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark">
102 <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
103 <item name="folderTextColor">@android:color/white</item>
104 </style>
105
Sunny Goyalbd88f392018-06-07 15:42:57 -0700106 <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
Sunny Goyal337fcb72018-05-30 12:00:43 -0700107 <item name="allAppsInterimScrimAlpha">25</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700108 <item name="folderFillColor">#CDFFFFFF</item>
109 <item name="folderTextColor">?attr/workspaceTextColor</item>
Sunny Goyala6afdff2018-05-24 13:49:57 -0700110 <item name="workspaceTextColor">#FF212121</item>
111 <item name="workspaceShadowColor">@android:color/transparent</item>
112 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
113 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
114 <item name="isWorkspaceDarkText">true</item>
115 <item name="workspaceStatusBarScrim">@null</item>
116 </style>
117
Sunny Goyalbd88f392018-06-07 15:42:57 -0700118 <!-- A derivative project can extend these themes to customize the application theme without
119 affecting the base theme -->
120 <style name="AppTheme" parent="@style/LauncherTheme" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700121 <style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700122 <style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700123
Sunny Goyalbd88f392018-06-07 15:42:57 -0700124 <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700125 <style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700126 <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
127
Sunny Goyal367f2192018-10-17 11:24:48 -0700128 <style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
129 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
130 </style>
131
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800132 <!--
133 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
Sunny Goyal325b5c72017-06-11 20:22:08 -0700134 Various foreground colors are overridden to be workspaceTextColor so that they are properly
135 visible on various wallpapers.
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800136 -->
Mario Bertschlera6936942017-05-31 14:48:19 -0700137 <style name="HomeScreenElementTheme">
Sunny Goyal325b5c72017-06-11 20:22:08 -0700138 <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
139 <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
140 <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800141 </style>
142
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800143 <!-- Theme for the widget container. Overridden on API 26. -->
144 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
145 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
146 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
147 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
148 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -0800149
Tony Wickham093c3ac2017-06-26 10:48:41 -0700150 <style name="WidgetContainerTheme.Dark" />
151
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700152 <style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700153 <item name="android:layout_width">wrap_content</item>
Sunny Goyal1a8f6fb2017-06-14 15:35:16 -0700154 <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
155 <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
156 <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
157 <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700158 <item name="android:gravity">center</item>
159 <item name="android:alpha">0</item>
160 <item name="android:elevation">3dp</item>
161 <item name="android:saveEnabled">false</item>
162 <item name="android:textColor">@android:color/white</item>
163 <item name="android:includeFontPadding">false</item>
Sunny Goyalc82c6392018-06-06 15:39:13 -0700164 <item name="android:importantForAccessibility">no</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700165 </style>
166
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800167 <!-- Base theme for BubbleTextView and sub classes -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800168 <style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800169 <item name="android:layout_width">match_parent</item>
170 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700171 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800172 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700173 <item name="android:gravity">center_horizontal</item>
Zak Cohencc4c6142018-10-24 13:26:47 -0700174 <item name="android:lines">1</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800175 <item name="android:textColor">?android:attr/textColorSecondary</item>
Sunny Goyalc9d3d062018-03-22 12:18:08 -0700176 <item name="android:defaultFocusHighlightEnabled">false</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800177
178 <!-- No shadows in the base theme -->
179 <item name="android:shadowRadius">0</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800180 </style>
181
Hyunyoung Songe751d902019-05-13 23:23:05 -0700182 <!-- Icon displayed on the workspace -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800183 <style name="BaseIcon.Workspace" >
Winson Chung785d2eb2011-04-14 16:08:02 -0700184 <item name="android:shadowRadius">2.0</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -0700185 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700186 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Sunny Goyal9314b7c2017-06-23 10:36:27 -0700187 <item name="ambientShadowBlur">2.5dp</item>
188 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
189 <item name="keyShadowBlur">1dp</item>
190 <item name="keyShadowOffset">.5dp</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800191 </style>
192
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700193 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700194 <style name="PopupItem">
195 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700196 </style>
197
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800198 <!-- Drop targets -->
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700199 <style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault">
Winson Chung4c98d922011-05-31 16:50:48 -0700200 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700201 <item name="android:paddingLeft">16dp</item>
202 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700203 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700204 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700205 <item name="android:singleLine">true</item>
206 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700207 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700208 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700209 <item name="android:shadowDy">1.0</item>
210 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700211 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700212
Sunny Goyal70660032015-05-14 00:07:08 -0700213 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700214
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700215 <style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
216
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800217 <style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
Sunny Goyal5931ca02017-06-19 17:29:48 -0700218
219 <style name="AllAppsEmptySearchBackground">
220 <item name="android:colorPrimary">#E0E0E0</item>
221 <item name="android:colorControlHighlight">#BDBDBD</item>
222 <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
223 </style>
224 <style name="AllAppsEmptySearchBackground.Dark">
225 <item name="android:colorPrimary">#9AA0A6</item>
226 <item name="android:colorControlHighlight">#DFE1E5</item>
227 <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
228 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700229</resources>