blob: e2d9ff486b55a650ed0f6c4666c0e18fbc20f9e4 [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 Goyal5abb9f82016-02-09 15:22:42 -080029 </style>
30
31 <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
32
Sunny Goyal9b29ca52017-02-17 10:39:44 -080033 <!--
34 Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
35 Various foreground colors are overridden to be white so that they are properly visible on
36 various wallpapers
37 -->
38 <style name="HomeScreenElementTheme" parent="@style/LauncherTheme">
39 <item name="android:colorEdgeEffect">@android:color/white</item>
40 <item name="android:textColorPrimary">@android:color/white</item>
41 <item name="android:textColorSecondary">@android:color/white</item>
42 </style>
43
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080044 <!-- Theme for the widget container. Overridden on API 26. -->
45 <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
46 <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
47 <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
48 <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
49 </style>
Sunny Goyalf1468af2016-02-17 11:36:26 -080050
Sunny Goyal3f0a53f2016-10-11 15:49:42 -070051 <style name="FastScrollerPopup" >
52 <item name="android:background">@drawable/container_fastscroll_popup_bg</item>
53 <item name="android:layout_width">wrap_content</item>
54 <item name="android:minWidth">@dimen/container_fastscroll_popup_size</item>
55 <item name="android:layout_height">@dimen/container_fastscroll_popup_size</item>
56 <item name="android:textSize">@dimen/container_fastscroll_popup_text_size</item>
57 <item name="android:gravity">center</item>
58 <item name="android:alpha">0</item>
59 <item name="android:elevation">3dp</item>
60 <item name="android:saveEnabled">false</item>
61 <item name="android:textColor">@android:color/white</item>
62 <item name="android:includeFontPadding">false</item>
63 </style>
64
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080065 <!-- Style for nav bar background in all-apps screen -->
66 <style name="AllAppsNavBarProtection">
67 <item name="android:alpha">?android:attr/spotShadowAlpha</item>
68 <item name="android:background">@color/default_shadow_color_no_alpha</item>
Andrew Sapperstein5f7750d2016-06-20 12:48:22 -070069 </style>
70
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080071 <!-- Base theme for BubbleTextView and sub classes -->
72 <style name="BaseIcon">
Romain Guy8f19cdd2010-01-08 15:07:00 -080073 <item name="android:layout_width">match_parent</item>
74 <item name="android:layout_height">match_parent</item>
Winson Chung4b825dcd2011-06-19 12:41:22 -070075 <item name="android:layout_gravity">center</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080076 <item name="android:focusable">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -070077 <item name="android:gravity">center_horizontal</item>
78 <item name="android:singleLine">true</item>
79 <item name="android:ellipsize">marquee</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -080080 <item name="android:textColor">?android:attr/textColorSecondary</item>
81 <item name="android:fontFamily">sans-serif-condensed</item>
82
83 <!-- No shadows in the base theme -->
84 <item name="android:shadowRadius">0</item>
85 <item name="customShadows">false</item>
86 </style>
87
88 <!-- Icon displayed on the worksapce -->
89 <style name="BaseIcon.Workspace">
90 <item name="customShadows">true</item>
Winson Chung785d2eb2011-04-14 16:08:02 -070091 <item name="android:shadowRadius">2.0</item>
92 <item name="android:shadowColor">#B0000000</item>
Tony Wickham9438ed42017-01-20 09:38:25 -080093 </style>
94
Tony Wickhamc66c3e22017-04-13 08:20:03 -070095 <!-- Theme for the popup container -->
96 <style name="PopupContainer" parent="@style/LauncherTheme">
97 <!-- TODO: move hardcoded colors from colors.xml to this theme and use for popup items -->
98 </style>
99 <style name="IconOnlySystemShortcut">
100 <!-- The icons use this color, then are tinted -->
101 <item name="android:textColorPrimary">@android:color/white</item>
102 <item name="android:tint">?android:attr/textColorHint</item>
103 </style>
104 <style name="IconWithTextSystemShortcut">
105 <!-- The icons use this color, then are tinted -->
106 <item name="android:textColorPrimary">@android:color/white</item>
107 <item name="android:backgroundTint">?android:attr/textColorTertiary</item>
108 </style>
109
Sunny Goyal5abb9f82016-02-09 15:22:42 -0800110 <!-- Drop targets -->
Sunny Goyal70660032015-05-14 00:07:08 -0700111 <style name="DropTargetButtonBase">
Winson Chung4c98d922011-05-31 16:50:48 -0700112 <item name="android:drawablePadding">7.5dp</item>
Tony Wickhame0dab192016-09-28 16:22:36 -0700113 <item name="android:paddingLeft">16dp</item>
114 <item name="android:paddingRight">16dp</item>
Sunny Goyal9b29ca52017-02-17 10:39:44 -0800115 <item name="android:textColor">?android:attr/textColorPrimary</item>
Sunny Goyal0e375f92014-10-23 11:38:15 -0700116 <item name="android:textSize">@dimen/drop_target_text_size</item>
Winson Chung90576b52011-09-27 17:45:27 -0700117 <item name="android:singleLine">true</item>
118 <item name="android:ellipsize">end</item>
Sunny Goyal1f3f07d2017-02-10 16:52:16 -0800119 <item name="android:shadowColor">@color/default_shadow_color_no_alpha</item>
Winson Chung557d6ed2011-07-08 15:34:52 -0700120 <item name="android:shadowDx">0.0</item>
Winson Chungc7aef8c2011-09-15 18:53:04 -0700121 <item name="android:shadowDy">1.0</item>
122 <item name="android:shadowRadius">4.0</item>
Winson Chung4c98d922011-05-31 16:50:48 -0700123 </style>
Winson Chung1cad91e2011-05-25 17:41:01 -0700124
Sunny Goyal70660032015-05-14 00:07:08 -0700125 <style name="DropTargetButton" parent="DropTargetButtonBase" />
Adam Cohenbe258222014-10-24 16:45:59 -0700126</resources>