blob: 39542cfd66e6af09e4393a1d9aa3bed4b824b805 [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 -->
Sunny Goyalad9fb522019-05-15 14:24:27 -070022 <style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.Light">
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">
Samuel Fufa99156052020-04-21 13:19:43 -070033 <item name="android:textColorSecondary">#DE000000</item>
34 <item name="allAppsScrimColor">#FFFFFFFF</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070035 <item name="allAppsInterimScrimAlpha">46</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070036 <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
Samuel Fufa61bc63a2020-06-05 12:17:16 -070037 <item name="allAppsTheme">@style/AllAppsTheme</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070038 <item name="popupColorPrimary">#FFF</item>
Samuel Fufa07919c62020-04-14 17:37:44 -070039 <item name="popupColorSecondary">#F1F3F4</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070040 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070041 <item name="isMainColorDark">false</item>
42 <item name="isWorkspaceDarkText">false</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070043 <item name="workspaceTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070044 <item name="workspaceShadowColor">#B0000000</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070045 <item name="workspaceAmbientShadowColor">#33000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070046 <item name="workspaceKeyShadowColor">#44000000</item>
47 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Tony Wickham093c3ac2017-06-26 10:48:41 -070048 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -080049 <item name="folderDotColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070050 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080051 <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070052 <item name="folderTextColor">#FF212121</item>
Hyunyoung Songd396e6a2020-06-15 22:10:06 -070053 <item name="folderHintColor">#89616161</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -070054 <item name="loadingIconColor">#CCFFFFFF</item>
Samuel Fufa07919c62020-04-14 17:37:44 -070055 <item name="iconOnlyShortcutColor">?android:attr/textColorSecondary</item>
Samuel Fufaea4dcf42020-02-04 12:08:11 -080056 <item name="workProfileOverlayTextColor">#FF212121</item>
Samuel Fufa1012fd22020-05-07 15:18:05 -070057 <item name="eduHalfSheetBGColor">?android:attr/colorAccent</item>
Samuel Fufae17de7c2020-06-19 12:44:44 -070058 <item name="disabledIconAlpha">.54</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080059
Sunny Goyal367f2192018-10-17 11:24:48 -070060 <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>
Samuel Fufa8f6d1412020-01-21 09:58:14 -080065
66
Sunny Goyal367f2192018-10-17 11:24:48 -070067 </style>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080068
Hyunyoung Songe751d902019-05-13 23:23:05 -070069 <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme">
70 <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
71 <item name="folderTextColor">?attr/workspaceTextColor</item>
Samuel Fufae17de7c2020-06-19 12:44:44 -070072 <item name="disabledIconAlpha">.254</item>
Samuel Fufa61bc63a2020-06-05 12:17:16 -070073
Hyunyoung Songe751d902019-05-13 23:23:05 -070074 </style>
75
Sunny Goyala6afdff2018-05-24 13:49:57 -070076 <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
Mario Bertschlera6936942017-05-31 14:48:19 -070077 <item name="workspaceTextColor">#FF212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070078 <item name="allAppsInterimScrimAlpha">128</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070079 <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>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080084 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070085 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080086 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070087 <item name="folderTextColor">?attr/workspaceTextColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070088 </style>
89
Sunny Goyalbd88f392018-06-07 15:42:57 -070090 <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070091 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070092 <item name="android:textColorSecondary">#FFFFFFFF</item>
93 <item name="android:textColorTertiary">#CCFFFFFF</item>
94 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070095 <item name="android:colorControlHighlight">#A0FFFFFF</item>
Sunny Goyal12f80382018-05-14 15:57:59 -070096 <item name="android:colorPrimary">#FF212121</item>
Samuel Fufaeb1d77a2020-05-10 14:02:10 -070097 <item name="allAppsScrimColor">#FF000000</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070098 <item name="allAppsInterimScrimAlpha">102</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070099 <item name="allAppsNavBarScrimColor">#80000000</item>
Samuel Fufa61bc63a2020-06-05 12:17:16 -0700100 <item name="allAppsTheme">@style/AllAppsTheme.Dark</item>
Hyunyoung Songbaa1a622019-04-11 23:31:51 -0700101 <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 -->
Samuel Fufa07919c62020-04-14 17:37:44 -0700102 <item name="popupColorSecondary">#202124</item>
Tony Wickham90038eb2017-06-06 15:42:32 -0700103 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Tony Wickham093c3ac2017-06-26 10:48:41 -0700104 <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -0800105 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700106 <item name="folderFillColor">#DD3C4043</item> <!-- 87% GM2 800 -->
Sunny Goyalbcadb7f2019-02-05 14:45:31 -0800107 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700108 <item name="folderTextColor">@android:color/white</item>
Hyunyoung Songd396e6a2020-06-15 22:10:06 -0700109 <item name="folderHintColor">#89CCCCCC</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700110 <item name="isMainColorDark">true</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -0700111 <item name="loadingIconColor">#99FFFFFF</item>
Samuel Fufa07919c62020-04-14 17:37:44 -0700112 <item name="iconOnlyShortcutColor">#B3FFFFFF</item>
Samuel Fufaea4dcf42020-02-04 12:08:11 -0800113 <item name="workProfileOverlayTextColor">@android:color/white</item>
Samuel Fufa1012fd22020-05-07 15:18:05 -0700114 <item name="eduHalfSheetBGColor">#DD000000</item>
Sunny Goyal368ae772017-05-24 13:19:15 -0700115 </style>
116
Hyunyoung Songe751d902019-05-13 23:23:05 -0700117 <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>
Samuel Fufae17de7c2020-06-19 12:44:44 -0700120 <item name="disabledIconAlpha">.54</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700121 </style>
122
Sunny Goyalbd88f392018-06-07 15:42:57 -0700123 <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
Hyunyoung Song0832d472019-07-24 17:20:18 -0700124 <item name="android:colorControlHighlight">#75212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -0700125 <item name="allAppsInterimScrimAlpha">25</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700126 <item name="folderFillColor">#CDFFFFFF</item>
127 <item name="folderTextColor">?attr/workspaceTextColor</item>
Sunny Goyala6afdff2018-05-24 13:49:57 -0700128 <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
Sunny Goyalbd88f392018-06-07 15:42:57 -0700136 <!-- 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" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700139 <style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700140 <style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700141
Sunny Goyalbd88f392018-06-07 15:42:57 -0700142 <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700143 <style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700144 <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
145
Sunny Goyal367f2192018-10-17 11:24:48 -0700146 <style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
147 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
148 </style>
149
Samuel Fufa9fee0452019-11-12 16:49:21 -0800150 <style name="HomeSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings">
151 <item name="android:navigationBarColor">@android:color/transparent</item>
152 </style>
153
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800154 <!--
155 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
Sunny Goyal325b5c72017-06-11 20:22:08 -0700156 Various foreground colors are overridden to be workspaceTextColor so that they are properly
157 visible on various wallpapers.
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800158 -->
Mario Bertschlera6936942017-05-31 14:48:19 -0700159 <style name="HomeScreenElementTheme">
Sunny Goyal325b5c72017-06-11 20:22:08 -0700160 <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
161 <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
162 <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800163 </style>
164
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800165 <!-- 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>
Sunny Goyalf1468af2016-02-17 11:36:26 -0800171
Tony Wickham093c3ac2017-06-26 10:48:41 -0700172 <style name="WidgetContainerTheme.Dark" />
173
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700174 <style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700175 <item name="android:layout_width">wrap_content</item>
Sunny Goyal1a8f6fb2017-06-14 15:35:16 -0700176 <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>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700180 <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>
Sunny Goyalc82c6392018-06-06 15:39:13 -0700186 <item name="android:importantForAccessibility">no</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700187 </style>
188
Samuel Fufa61bc63a2020-06-05 12:17:16 -0700189 <style name="AllAppsTheme">
Samuel Fufae17de7c2020-06-19 12:44:44 -0700190 <item name="disabledIconAlpha">.54</item>
Samuel Fufa61bc63a2020-06-05 12:17:16 -0700191 </style>
192
193 <style name="AllAppsTheme.Dark">
Samuel Fufae17de7c2020-06-19 12:44:44 -0700194 <item name="disabledIconAlpha">.54</item>
Samuel Fufa61bc63a2020-06-05 12:17:16 -0700195 </style>
196
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800197 <!-- Base theme for BubbleTextView and sub classes -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800198 <style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800199 <item name="android:layout_width">match_parent</item>
200 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700201 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800202 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700203 <item name="android:gravity">center_horizontal</item>
Zak Cohencc4c6142018-10-24 13:26:47 -0700204 <item name="android:lines">1</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800205 <item name="android:textColor">?android:attr/textColorSecondary</item>
Sunny Goyalc9d3d062018-03-22 12:18:08 -0700206 <item name="android:defaultFocusHighlightEnabled">false</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800207
208 <!-- No shadows in the base theme -->
209 <item name="android:shadowRadius">0</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800210 </style>
211
Hyunyoung Songe751d902019-05-13 23:23:05 -0700212 <!-- Icon displayed on the workspace -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800213 <style name="BaseIcon.Workspace" >
Winson Chung785d2eb2011-04-14 16:08:02 -0700214 <item name="android:shadowRadius">2.0</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -0700215 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700216 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Sunny Goyal9314b7c2017-06-23 10:36:27 -0700217 <item name="ambientShadowBlur">2.5dp</item>
218 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
219 <item name="keyShadowBlur">1dp</item>
220 <item name="keyShadowOffset">.5dp</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800221 </style>
222
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700223 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700224 <style name="PopupItem">
225 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700226 </style>
227
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800228 <!-- Drop targets -->
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700229 <style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault">
Winson Chung4c98d922011-05-31 16:50:48 -0700230 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700231 <item name="android:paddingLeft">16dp</item>
232 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700233 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700234 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700235 <item name="android:singleLine">true</item>
236 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700237 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700238 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700239 <item name="android:shadowDy">1.0</item>
240 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700241 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700242
Sunny Goyal70660032015-05-14 00:07:08 -0700243 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700244
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700245 <style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
Samuel Fufaf5a4deb2020-03-04 16:24:06 -0800246 <style name="PrimaryMediumText" parent="@android:style/TextAppearance.DeviceDefault.Medium"/>
Samuel Fufa0826bc12020-05-10 14:40:20 -0700247 <style name="PrimaryHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"/>
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700248
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800249 <style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
Sunny Goyal5931ca02017-06-19 17:29:48 -0700250
251 <style name="AllAppsEmptySearchBackground">
252 <item name="android:colorPrimary">#E0E0E0</item>
253 <item name="android:colorControlHighlight">#BDBDBD</item>
254 <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
255 </style>
256 <style name="AllAppsEmptySearchBackground.Dark">
257 <item name="android:colorPrimary">#9AA0A6</item>
258 <item name="android:colorControlHighlight">#DFE1E5</item>
259 <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
260 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700261</resources>