blob: 1523ea913c2d23e1fcfdbdba528ad2c99bab0f53 [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>
Tony Wickham90038eb2017-06-06 15:42:32 -070037 <item name="popupColorPrimary">#FFF</item>
38 <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
39 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070040 <item name="isMainColorDark">false</item>
41 <item name="isWorkspaceDarkText">false</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070042 <item name="workspaceTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070043 <item name="workspaceShadowColor">#B0000000</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070044 <item name="workspaceAmbientShadowColor">#33000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070045 <item name="workspaceKeyShadowColor">#44000000</item>
46 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Tony Wickham093c3ac2017-06-26 10:48:41 -070047 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -080048 <item name="folderDotColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070049 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080050 <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070051 <item name="folderTextColor">#FF212121</item>
Samuel Fufa7315bdd2020-02-03 18:56:54 -080052 <item name="folderHintColor">#FF616161</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -070053 <item name="loadingIconColor">#CCFFFFFF</item>
Samuel Fufaea4dcf42020-02-04 12:08:11 -080054 <item name="workProfileOverlayTextColor">#FF212121</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080055
Sunny Goyal367f2192018-10-17 11:24:48 -070056 <item name="android:windowTranslucentStatus">false</item>
57 <item name="android:windowTranslucentNavigation">false</item>
58 <item name="android:windowDrawsSystemBarBackgrounds">true</item>
59 <item name="android:statusBarColor">#00000000</item>
60 <item name="android:navigationBarColor">#00000000</item>
Samuel Fufa8f6d1412020-01-21 09:58:14 -080061
62
Sunny Goyal367f2192018-10-17 11:24:48 -070063 </style>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080064
Hyunyoung Songe751d902019-05-13 23:23:05 -070065 <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme">
66 <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
67 <item name="folderTextColor">?attr/workspaceTextColor</item>
68 </style>
69
Sunny Goyala6afdff2018-05-24 13:49:57 -070070 <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
Mario Bertschlera6936942017-05-31 14:48:19 -070071 <item name="workspaceTextColor">#FF212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070072 <item name="allAppsInterimScrimAlpha">128</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070073 <item name="workspaceShadowColor">@android:color/transparent</item>
74 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
75 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
76 <item name="isWorkspaceDarkText">true</item>
77 <item name="workspaceStatusBarScrim">@null</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080078 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070079 <item name="folderFillColor">#CDFFFFFF</item>
Sunny Goyalbcadb7f2019-02-05 14:45:31 -080080 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -070081 <item name="folderTextColor">?attr/workspaceTextColor</item>
Samuel Fufaea4dcf42020-02-04 12:08:11 -080082
Mario Bertschlera6936942017-05-31 14:48:19 -070083 </style>
84
Sunny Goyalbd88f392018-06-07 15:42:57 -070085 <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070086 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070087 <item name="android:textColorSecondary">#FFFFFFFF</item>
88 <item name="android:textColorTertiary">#CCFFFFFF</item>
89 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070090 <item name="android:colorControlHighlight">#A0FFFFFF</item>
Sunny Goyal12f80382018-05-14 15:57:59 -070091 <item name="android:colorPrimary">#FF212121</item>
Samuel Fufa99156052020-04-21 13:19:43 -070092 <item name="allAppsScrimColor">#FF212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070093 <item name="allAppsInterimScrimAlpha">102</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070094 <item name="allAppsNavBarScrimColor">#80000000</item>
Hyunyoung Songbaa1a622019-04-11 23:31:51 -070095 <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 -->
96 <item name="popupColorSecondary">#5F6368</item> <!-- Gray 700 -->
Tony Wickham90038eb2017-06-06 15:42:32 -070097 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Tony Wickham093c3ac2017-06-26 10:48:41 -070098 <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
Tony Wickhamf34bee82018-12-03 18:11:39 -080099 <item name="folderDotColor">#FF464646</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700100 <item name="folderFillColor">#DD3C4043</item> <!-- 87% GM2 800 -->
Sunny Goyalbcadb7f2019-02-05 14:45:31 -0800101 <item name="folderIconBorderColor">#FF80868B</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700102 <item name="folderTextColor">@android:color/white</item>
Samuel Fufa7315bdd2020-02-03 18:56:54 -0800103 <item name="folderHintColor">#FFCCCCCC</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700104 <item name="isMainColorDark">true</item>
Sunny Goyal577bc6b2019-04-04 14:50:29 -0700105 <item name="loadingIconColor">#99FFFFFF</item>
Samuel Fufaea4dcf42020-02-04 12:08:11 -0800106 <item name="workProfileOverlayTextColor">@android:color/white</item>
Sunny Goyal368ae772017-05-24 13:19:15 -0700107 </style>
108
Hyunyoung Songe751d902019-05-13 23:23:05 -0700109 <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark">
110 <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 -->
111 <item name="folderTextColor">@android:color/white</item>
112 </style>
113
Sunny Goyalbd88f392018-06-07 15:42:57 -0700114 <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
Hyunyoung Song0832d472019-07-24 17:20:18 -0700115 <item name="android:colorControlHighlight">#75212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -0700116 <item name="allAppsInterimScrimAlpha">25</item>
Hyunyoung Songe751d902019-05-13 23:23:05 -0700117 <item name="folderFillColor">#CDFFFFFF</item>
118 <item name="folderTextColor">?attr/workspaceTextColor</item>
Sunny Goyala6afdff2018-05-24 13:49:57 -0700119 <item name="workspaceTextColor">#FF212121</item>
120 <item name="workspaceShadowColor">@android:color/transparent</item>
121 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
122 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
123 <item name="isWorkspaceDarkText">true</item>
124 <item name="workspaceStatusBarScrim">@null</item>
125 </style>
126
Sunny Goyalbd88f392018-06-07 15:42:57 -0700127 <!-- A derivative project can extend these themes to customize the application theme without
128 affecting the base theme -->
129 <style name="AppTheme" parent="@style/LauncherTheme" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700130 <style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700131 <style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700132
Sunny Goyalbd88f392018-06-07 15:42:57 -0700133 <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
Hyunyoung Songe751d902019-05-13 23:23:05 -0700134 <style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
Sunny Goyalbd88f392018-06-07 15:42:57 -0700135 <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
136
Sunny Goyal367f2192018-10-17 11:24:48 -0700137 <style name="AppItemActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
138 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
139 </style>
140
Samuel Fufa9fee0452019-11-12 16:49:21 -0800141 <style name="HomeSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings">
142 <item name="android:navigationBarColor">@android:color/transparent</item>
143 </style>
144
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800145 <!--
146 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
Sunny Goyal325b5c72017-06-11 20:22:08 -0700147 Various foreground colors are overridden to be workspaceTextColor so that they are properly
148 visible on various wallpapers.
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800149 -->
Mario Bertschlera6936942017-05-31 14:48:19 -0700150 <style name="HomeScreenElementTheme">
Sunny Goyal325b5c72017-06-11 20:22:08 -0700151 <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
152 <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
153 <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800154 </style>
155
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800156 <!-- Theme for the widget container. Overridden on API 26. -->
157 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
158 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
159 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
160 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
161 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -0800162
Tony Wickham093c3ac2017-06-26 10:48:41 -0700163 <style name="WidgetContainerTheme.Dark" />
164
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700165 <style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700166 <item name="android:layout_width">wrap_content</item>
Sunny Goyal1a8f6fb2017-06-14 15:35:16 -0700167 <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
168 <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
169 <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
170 <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700171 <item name="android:gravity">center</item>
172 <item name="android:alpha">0</item>
173 <item name="android:elevation">3dp</item>
174 <item name="android:saveEnabled">false</item>
175 <item name="android:textColor">@android:color/white</item>
176 <item name="android:includeFontPadding">false</item>
Sunny Goyalc82c6392018-06-06 15:39:13 -0700177 <item name="android:importantForAccessibility">no</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700178 </style>
179
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800180 <!-- Base theme for BubbleTextView and sub classes -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800181 <style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800182 <item name="android:layout_width">match_parent</item>
183 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700184 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800185 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700186 <item name="android:gravity">center_horizontal</item>
Zak Cohencc4c6142018-10-24 13:26:47 -0700187 <item name="android:lines">1</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800188 <item name="android:textColor">?android:attr/textColorSecondary</item>
Sunny Goyalc9d3d062018-03-22 12:18:08 -0700189 <item name="android:defaultFocusHighlightEnabled">false</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800190
191 <!-- No shadows in the base theme -->
192 <item name="android:shadowRadius">0</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800193 </style>
194
Hyunyoung Songe751d902019-05-13 23:23:05 -0700195 <!-- Icon displayed on the workspace -->
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800196 <style name="BaseIcon.Workspace" >
Winson Chung785d2eb2011-04-14 16:08:02 -0700197 <item name="android:shadowRadius">2.0</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -0700198 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700199 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Sunny Goyal9314b7c2017-06-23 10:36:27 -0700200 <item name="ambientShadowBlur">2.5dp</item>
201 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
202 <item name="keyShadowBlur">1dp</item>
203 <item name="keyShadowOffset">.5dp</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800204 </style>
205
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700206 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700207 <style name="PopupItem">
208 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700209 </style>
210
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800211 <!-- Drop targets -->
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700212 <style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault">
Winson Chung4c98d922011-05-31 16:50:48 -0700213 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700214 <item name="android:paddingLeft">16dp</item>
215 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700216 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700217 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700218 <item name="android:singleLine">true</item>
219 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700220 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700221 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700222 <item name="android:shadowDy">1.0</item>
223 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700224 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700225
Sunny Goyal70660032015-05-14 00:07:08 -0700226 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700227
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700228 <style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
Samuel Fufaf5a4deb2020-03-04 16:24:06 -0800229 <style name="PrimaryMediumText" parent="@android:style/TextAppearance.DeviceDefault.Medium"/>
Samuel Fufae54410a2020-04-12 18:14:43 -0700230 <style name="PrimaryHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
231 <item name="android:textStyle">bold</item>
232 </style>
Hyunyoung Songdf4bf922019-04-11 15:17:41 -0700233
Hyunyoung Song72dae7f2019-02-27 16:58:57 -0800234 <style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
Sunny Goyal5931ca02017-06-19 17:29:48 -0700235
236 <style name="AllAppsEmptySearchBackground">
237 <item name="android:colorPrimary">#E0E0E0</item>
238 <item name="android:colorControlHighlight">#BDBDBD</item>
239 <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
240 </style>
241 <style name="AllAppsEmptySearchBackground.Dark">
242 <item name="android:colorPrimary">#9AA0A6</item>
243 <item name="android:colorControlHighlight">#DFE1E5</item>
244 <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
245 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700246</resources>