blob: 13bbe42042fa6f783e06f8708232df725eadb0dd [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 Goyal368ae772017-05-24 13:19:15 -070029 <item name="allAppsScrimColor">#DDFFFFFF</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070030 <item name="popupColorPrimary">#FFF</item>
31 <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 -->
32 <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070033 <item name="isMainColorDark">false</item>
34 <item name="isWorkspaceDarkText">false</item>
35 <item name="workspaceTextColor">?android:textColorPrimary</item>
36 <item name="workspaceShadowColor">#B0000000</item>
37 <item name="workspaceAmbientShadowColor">#22000000</item>
38 <item name="workspaceKeyShadowColor">#44000000</item>
39 <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
Sunny Goyal5abb9f82016-02-09 15:22:42 -080040 </style>
41
42 <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
43
Mario Bertschlera6936942017-05-31 14:48:19 -070044 <style name="LauncherThemeDarkText" parent="@style/LauncherTheme">
45 <item name="workspaceTextColor">#FF212121</item>
46 <item name="workspaceShadowColor">@android:color/transparent</item>
47 <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
48 <item name="workspaceKeyShadowColor">@android:color/transparent</item>
49 <item name="isWorkspaceDarkText">true</item>
50 <item name="workspaceStatusBarScrim">@null</item>
51 </style>
52
Sunny Goyal368ae772017-05-24 13:19:15 -070053 <style name="LauncherThemeDark" parent="@style/LauncherTheme">
Tony Wickham90038eb2017-06-06 15:42:32 -070054 <item name="android:textColorPrimary">#FFFFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070055 <item name="android:textColorSecondary">#FFFFFFFF</item>
56 <item name="android:textColorTertiary">#CCFFFFFF</item>
57 <item name="android:textColorHint">#A0FFFFFF</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070058 <item name="android:colorControlHighlight">#A0FFFFFF</item>
59 <item name="android:colorPrimary">#FF333333</item>
60 <item name="allAppsScrimColor">#33000000</item>
Tony Wickham90038eb2017-06-06 15:42:32 -070061 <item name="popupColorPrimary">?android:attr/colorPrimary</item>
62 <item name="popupColorSecondary">#424242</item> <!-- Gray 800 -->
63 <item name="popupColorTertiary">#757575</item> <!-- Gray 600 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070064 <item name="isMainColorDark">true</item>
Sunny Goyal368ae772017-05-24 13:19:15 -070065 </style>
66
Sunny Goyal9b29ca52017-02-17 10:39:44 -080067 <!--
68 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
69 Various foreground colors are overridden to be white so that they are properly visible on
70 various wallpapers
71 -->
Mario Bertschlera6936942017-05-31 14:48:19 -070072 <style name="HomeScreenElementTheme">
Sunny Goyal9b29ca52017-02-17 10:39:44 -080073 <item name="android:colorEdgeEffect">@android:color/white</item>
74 <item name="android:textColorPrimary">@android:color/white</item>
75 <item name="android:textColorSecondary">@android:color/white</item>
76 </style>
77
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080078 <!-- Theme for the widget container. Overridden on API 26. -->
79 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
80 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
81 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
82 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
83 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -080084
Sunny Goyal3f0a53f2016-10-11 15:49:42 -070085 <style name="FastScrollerPopup" >
86 <item name="android:background">@drawable/container_fastscroll_popup_bg</item>
87 <item name="android:layout_width">wrap_content</item>
88 <item name="android:minWidth">@dimen/container_fastscroll_popup_size</item>
89 <item name="android:layout_height">@dimen/container_fastscroll_popup_size</item>
90 <item name="android:textSize">@dimen/container_fastscroll_popup_text_size</item>
91 <item name="android:gravity">center</item>
92 <item name="android:alpha">0</item>
93 <item name="android:elevation">3dp</item>
94 <item name="android:saveEnabled">false</item>
95 <item name="android:textColor">@android:color/white</item>
96 <item name="android:includeFontPadding">false</item>
97 </style>
98
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080099 <!-- Style for nav bar background in all-apps screen -->
100 <style name="AllAppsNavBarProtection">
101 <item name="android:alpha">?android:attr/spotShadowAlpha</item>
102 <item name="android:background">@color/default_shadow_color_no_alpha</item>
Andrew Sapperstein5f7750d2016-06-20 12:48:22 -0700103 </style>
104
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800105 <!-- Base theme for BubbleTextView and sub classes -->
106 <style name="BaseIcon">
Romain Guy8f19cdd2010-01-08 15:07:00 -0800107 <item name="android:layout_width">match_parent</item>
108 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -0700109 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800110 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700111 <item name="android:gravity">center_horizontal</item>
112 <item name="android:singleLine">true</item>
113 <item name="android:ellipsize">marquee</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800114 <item name="android:textColor">?android:attr/textColorSecondary</item>
115 <item name="android:fontFamily">sans-serif-condensed</item>
116
117 <!-- No shadows in the base theme -->
118 <item name="android:shadowRadius">0</item>
119 <item name="customShadows">false</item>
120 </style>
121
122 <!-- Icon displayed on the worksapce -->
123 <style name="BaseIcon.Workspace">
124 <item name="customShadows">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -0700125 <item name="android:shadowRadius">2.0</item>
126 <item name="android:shadowColor">#B0000000</item>
Mario Bertschlera6936942017-05-31 14:48:19 -0700127 <item name="android:textColor">?attr/workspaceTextColor</item>
128 <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
129 <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
Tony Wickham9438ed42017-01-20 09:38:25 -0800130 </style>
131
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700132 <!-- Theme for the popup container -->
Tony Wickham90038eb2017-06-06 15:42:32 -0700133 <style name="PopupItem">
134 <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
Tony Wickhamc66c3e22017-04-13 08:20:03 -0700135 </style>
136
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800137 <!-- Drop targets -->
Sunny Goyal70660032015-05-14 00:07:08 -0700138 <style name="DropTargetButtonBase">
Winson Chung4c98d922011-05-31 16:50:48 -0700139 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700140 <item name="android:paddingLeft">16dp</item>
141 <item name="android:paddingRight">16dp</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700142 <item name="android:textColor">?attr/workspaceTextColor</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700143 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700144 <item name="android:singleLine">true</item>
145 <item name="android:ellipsize">end</item>
Mario Bertschler54ba6012017-06-08 10:53:53 -0700146 <item name="android:shadowColor">?attr/workspaceShadowColor</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700147 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700148 <item name="android:shadowDy">1.0</item>
149 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700150 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700151
Sunny Goyal70660032015-05-14 00:07:08 -0700152 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Mario Bertschler93e39ec2017-06-09 10:20:17 -0700153
154 <style name="TextTitle">
155 <item name="android:fontFamily">sans-serif</item>
156 </style>
Adam Cohenbe258222014-10-24 16:45:59 -0700157</resources>