blob: 594c7dbdeaca1457b04d9bd8f98b368237a74658 [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 Goyal60820d72017-05-09 12:40:11 -070028 <item name="android:keyboardLayout">@layout/all_apps_search_container</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070029 </style>
30
31 <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme">
Sunny Goyal368ae772017-05-24 13:19:15 -070032 <item name="allAppsScrimColor">#DDFFFFFF</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070033 <item name="popupColorPrimary">#FFF</item>
34 <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
35 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070036 <item name="isMainColorDark">false</item>
37 <item name="isWorkspaceDarkText">false</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070038 <item name="workspaceTextColor">@android:color/white</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070039 <item name="workspaceShadowColor">#B0000000</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -070040 <item name="workspaceAmbientShadowColor">#33000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -070041 <item name="workspaceKeyShadowColor">#44000000</item>
42 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080043 </style>
44
Sunny Goyal325b5c72017-06-11 20:22:08 -070045 <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs"></style>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080046
Mario Bertschlera6936942017-05-31 14:48:19 -070047 <style name="LauncherThemeDarkText" parent="@style/LauncherTheme">
48 <item name="workspaceTextColor">#FF212121</item>
49 <item name="workspaceShadowColor">@android:color/transparent</item>
50 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
51 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
52 <item name="isWorkspaceDarkText">true</item>
53 <item name="workspaceStatusBarScrim">@null</item>
54 </style>
55
Sunny Goyal368ae772017-05-24 13:19:15 -070056 <style name="LauncherThemeDark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070057 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070058 <item name="android:textColorSecondary">#FFFFFFFF</item>
59 <item name="android:textColorTertiary">#CCFFFFFF</item>
60 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070061 <item name="android:colorControlHighlight">#A0FFFFFF</item>
62 <item name="android:colorPrimary">#FF333333</item>
63 <item name="allAppsScrimColor">#33000000</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070064 <item name="popupColorPrimary">?android:attr/colorPrimary</item>
65 <item name="popupColorSecondary">#424242</item> <!-- Gray 800 -->
66 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070067 <item name="isMainColorDark">true</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070068 </style>
69
Sunny Goyal9b29ca52017-02-17 10:39:44 -080070 <!--
71 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
Sunny Goyal325b5c72017-06-11 20:22:08 -070072 Various foreground colors are overridden to be workspaceTextColor so that they are properly
73 visible on various wallpapers.
Sunny Goyal9b29ca52017-02-17 10:39:44 -080074 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070075 <style name="HomeScreenElementTheme">
Sunny Goyal325b5c72017-06-11 20:22:08 -070076 <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
77 <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
78 <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -080079 </style>
80
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080081 <!-- Theme for the widget container. Overridden on API 26. -->
82 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
83 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
84 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
85 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
86 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -080087
Sunny Goyal3f0a53f2016-10-11 15:49:42 -070088 <style name="FastScrollerPopup" >
Sunny Goyal3f0a53f2016-10-11 15:49:42 -070089 <item name="android:layout_width">wrap_content</item>
Sunny Goyal1a8f6fb2017-06-14 15:35:16 -070090 <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
91 <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
92 <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
93 <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
Sunny Goyal3f0a53f2016-10-11 15:49:42 -070094 <item name="android:gravity">center</item>
95 <item name="android:alpha">0</item>
96 <item name="android:elevation">3dp</item>
97 <item name="android:saveEnabled">false</item>
98 <item name="android:textColor">@android:color/white</item>
99 <item name="android:includeFontPadding">false</item>
100 </style>
101
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800102 <!-- Style for nav bar background in all-apps screen -->
103 <style name="AllAppsNavBarProtection">
104 <item name="android:alpha">?android:attr/spotShadowAlpha</item>
105 <item name="android:background">@color/default_shadow_color_no_alpha</item>
Andrew Sapperstein5f7750d2016-06-20 12:48:22 -0700106 </style>
107
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800108 <!-- Base theme for BubbleTextView and sub classes -->
109 <style name="BaseIcon">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800110 <item name="android:layout_width">match_parent</item>
111 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700112 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800113 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700114 <item name="android:gravity">center_horizontal</item>
115 <item name="android:singleLine">true</item>
116 <item name="android:ellipsize">marquee</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800117 <item name="android:textColor">?android:attr/textColorSecondary</item>
118 <item name="android:fontFamily">sans-serif-condensed</item>
119
120 <!-- No shadows in the base theme -->
121 <item name="android:shadowRadius">0</item>
122 <item name="customShadows">false</item>
123 </style>
124
125 <!-- Icon displayed on the worksapce -->
126 <style name="BaseIcon.Workspace">
127 <item name="customShadows">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700128 <item name="android:shadowRadius">2.0</item>
Sunny Goyal325b5c72017-06-11 20:22:08 -0700129 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700130 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
131 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800132 </style>
133
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700134 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700135 <style name="PopupItem">
136 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700137 </style>
138
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800139 <!-- Drop targets -->
Sunny Goyal70660032015-05-14 00:07:08 -0700140 <style name="DropTargetButtonBase">
Winson Chung4c98d922011-05-31 16:50:48 -0700141 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700142 <item name="android:paddingLeft">16dp</item>
143 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700144 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700145 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700146 <item name="android:singleLine">true</item>
147 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700148 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700149 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700150 <item name="android:shadowDy">1.0</item>
151 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700152 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700153
Sunny Goyal70660032015-05-14 00:07:08 -0700154 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700155
156 <style name="TextTitle">
157 <item name="android:fontFamily">sans-serif</item>
158 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700159</resources>