blob: 31cbaa11afb95a29659fab9e323f6af3a7cbd25d [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 -->
22 <style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
23 <item name="android:windowBackground">@android:color/transparent</item>
24 <item name="android:colorBackgroundCacheHint">@null</item>
25 <item name="android:windowShowWallpaper">true</item>
26 <item name="android:windowNoTitle">true</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080027 <item name="android:colorEdgeEffect">#FF757575</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070028 </style>
29
30 <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme">
Sunny Goyal36d090d2018-04-26 13:51:18 -070031 <item name="allAppsScrimColor">#EAFFFFFF</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070032 <item name="allAppsInterimScrimAlpha">46</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070033 <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070034 <item name="popupColorPrimary">#FFF</item>
35 <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
36 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070037 <item name="isMainColorDark">false</item>
38 <item name="isWorkspaceDarkText">false</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070039 <item name="workspaceTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070040 <item name="workspaceShadowColor">#B0000000</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070041 <item name="workspaceAmbientShadowColor">#33000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070042 <item name="workspaceKeyShadowColor">#44000000</item>
43 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Tony Wickham093c3ac2017-06-26 10:48:41 -070044 <item name="widgetsTheme">@style/WidgetContainerTheme</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080045 </style>
46
Sunny Goyal325b5c72017-06-11 20:22:08 -070047 <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs"></style>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080048
Sunny Goyala6afdff2018-05-24 13:49:57 -070049 <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
Mario Bertschlera6936942017-05-31 14:48:19 -070050 <item name="workspaceTextColor">#FF212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070051 <item name="allAppsInterimScrimAlpha">128</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070052 <item name="workspaceShadowColor">@android:color/transparent</item>
53 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
54 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
55 <item name="isWorkspaceDarkText">true</item>
56 <item name="workspaceStatusBarScrim">@null</item>
57 </style>
58
Sunny Goyal368ae772017-05-24 13:19:15 -070059 <style name="LauncherThemeDark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070060 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070061 <item name="android:textColorSecondary">#FFFFFFFF</item>
62 <item name="android:textColorTertiary">#CCFFFFFF</item>
63 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070064 <item name="android:colorControlHighlight">#A0FFFFFF</item>
Sunny Goyal12f80382018-05-14 15:57:59 -070065 <item name="android:colorPrimary">#FF212121</item>
Sunny Goyal36d090d2018-04-26 13:51:18 -070066 <item name="allAppsScrimColor">#EA212121</item>
Sunny Goyal337fcb72018-05-30 12:00:43 -070067 <item name="allAppsInterimScrimAlpha">102</item>
Sunny Goyal81a70e52017-08-18 01:02:20 -070068 <item name="allAppsNavBarScrimColor">#80000000</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070069 <item name="popupColorPrimary">?android:attr/colorPrimary</item>
70 <item name="popupColorSecondary">#424242</item> <!-- Gray 800 -->
71 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Tony Wickham093c3ac2017-06-26 10:48:41 -070072 <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070073 <item name="isMainColorDark">true</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070074 </style>
75
Sunny Goyala6afdff2018-05-24 13:49:57 -070076 <style name="LauncherThemeDark.DarKText" parent="@style/LauncherThemeDark">
Sunny Goyal337fcb72018-05-30 12:00:43 -070077 <item name="allAppsInterimScrimAlpha">25</item>
Sunny Goyala6afdff2018-05-24 13:49:57 -070078 <item name="workspaceTextColor">#FF212121</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 </style>
85
Sunny Goyal9b29ca52017-02-17 10:39:44 -080086 <!--
87 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
Sunny Goyal325b5c72017-06-11 20:22:08 -070088 Various foreground colors are overridden to be workspaceTextColor so that they are properly
89 visible on various wallpapers.
Sunny Goyal9b29ca52017-02-17 10:39:44 -080090 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070091 <style name="HomeScreenElementTheme">
Sunny Goyal325b5c72017-06-11 20:22:08 -070092 <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
93 <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
94 <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -080095 </style>
96
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080097 <!-- Theme for the widget container. Overridden on API 26. -->
98 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
99 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
100 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
101 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
102 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -0800103
Tony Wickham093c3ac2017-06-26 10:48:41 -0700104 <style name="WidgetContainerTheme.Dark" />
105
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700106 <style name="FastScrollerPopup" >
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700107 <item name="android:layout_width">wrap_content</item>
Sunny Goyal1a8f6fb2017-06-14 15:35:16 -0700108 <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
109 <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
110 <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
111 <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -0700112 <item name="android:gravity">center</item>
113 <item name="android:alpha">0</item>
114 <item name="android:elevation">3dp</item>
115 <item name="android:saveEnabled">false</item>
116 <item name="android:textColor">@android:color/white</item>
117 <item name="android:includeFontPadding">false</item>
118 </style>
119
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800120 <!-- Base theme for BubbleTextView and sub classes -->
121 <style name="BaseIcon">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800122 <item name="android:layout_width">match_parent</item>
123 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700124 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800125 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700126 <item name="android:gravity">center_horizontal</item>
127 <item name="android:singleLine">true</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800128 <item name="android:textColor">?android:attr/textColorSecondary</item>
129 <item name="android:fontFamily">sans-serif-condensed</item>
Sunny Goyalc9d3d062018-03-22 12:18:08 -0700130 <item name="android:defaultFocusHighlightEnabled">false</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800131
132 <!-- No shadows in the base theme -->
133 <item name="android:shadowRadius">0</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800134 </style>
135
136 <!-- Icon displayed on the worksapce -->
137 <style name="BaseIcon.Workspace">
Winson Chung785d2eb2011-04-14 16:08:02 -0700138 <item name="android:shadowRadius">2.0</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -0700139 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700140 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Sunny Goyal9314b7c2017-06-23 10:36:27 -0700141 <item name="ambientShadowBlur">2.5dp</item>
142 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
143 <item name="keyShadowBlur">1dp</item>
144 <item name="keyShadowOffset">.5dp</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800145 </style>
146
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700147 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700148 <style name="PopupItem">
149 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700150 </style>
151
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800152 <!-- Drop targets -->
Sunny Goyal70660032015-05-14 00:07:08 -0700153 <style name="DropTargetButtonBase">
Winson Chung4c98d922011-05-31 16:50:48 -0700154 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700155 <item name="android:paddingLeft">16dp</item>
156 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700157 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700158 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700159 <item name="android:singleLine">true</item>
160 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700161 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700162 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700163 <item name="android:shadowDy">1.0</item>
164 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700165 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700166
Sunny Goyal70660032015-05-14 00:07:08 -0700167 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700168
169 <style name="TextTitle">
170 <item name="android:fontFamily">sans-serif</item>
171 </style>
Sunny Goyal5931ca02017-06-19 17:29:48 -0700172
173 <style name="AllAppsEmptySearchBackground">
174 <item name="android:colorPrimary">#E0E0E0</item>
175 <item name="android:colorControlHighlight">#BDBDBD</item>
176 <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item>
177 </style>
178 <style name="AllAppsEmptySearchBackground.Dark">
179 <item name="android:colorPrimary">#9AA0A6</item>
180 <item name="android:colorControlHighlight">#DFE1E5</item>
181 <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item>
182 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700183</resources>