The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 1 | <?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 Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 21 | <!-- 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 Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 27 | <item name="android:colorEdgeEffect">#FF757575</item> |
Sunny Goyal | 60820d7 | 2017-05-09 12:40:11 -0700 | [diff] [blame^] | 28 | <item name="android:keyboardLayout">@layout/all_apps_search_container</item> |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 29 | </style> |
| 30 | |
| 31 | <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style> |
| 32 | |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 33 | <!-- |
| 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 Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 44 | <!-- 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 Goyal | f1468af | 2016-02-17 11:36:26 -0800 | [diff] [blame] | 50 | |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 51 | <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 Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 65 | <!-- 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 Sapperstein | 5f7750d | 2016-06-20 12:48:22 -0700 | [diff] [blame] | 69 | </style> |
| 70 | |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 71 | <!-- Base theme for BubbleTextView and sub classes --> |
| 72 | <style name="BaseIcon"> |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 73 | <item name="android:layout_width">match_parent</item> |
| 74 | <item name="android:layout_height">match_parent</item> |
Winson Chung | 4b825dcd | 2011-06-19 12:41:22 -0700 | [diff] [blame] | 75 | <item name="android:layout_gravity">center</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 76 | <item name="android:focusable">true</item> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 77 | <item name="android:gravity">center_horizontal</item> |
| 78 | <item name="android:singleLine">true</item> |
| 79 | <item name="android:ellipsize">marquee</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 80 | <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 Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 91 | <item name="android:shadowRadius">2.0</item> |
| 92 | <item name="android:shadowColor">#B0000000</item> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 93 | </style> |
| 94 | |
Tony Wickham | c66c3e2 | 2017-04-13 08:20:03 -0700 | [diff] [blame] | 95 | <!-- 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 Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 110 | <!-- Drop targets --> |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 111 | <style name="DropTargetButtonBase"> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 112 | <item name="android:drawablePadding">7.5dp</item> |
Tony Wickham | e0dab19 | 2016-09-28 16:22:36 -0700 | [diff] [blame] | 113 | <item name="android:paddingLeft">16dp</item> |
| 114 | <item name="android:paddingRight">16dp</item> |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 115 | <item name="android:textColor">?android:attr/textColorPrimary</item> |
Sunny Goyal | 0e375f9 | 2014-10-23 11:38:15 -0700 | [diff] [blame] | 116 | <item name="android:textSize">@dimen/drop_target_text_size</item> |
Winson Chung | 90576b5 | 2011-09-27 17:45:27 -0700 | [diff] [blame] | 117 | <item name="android:singleLine">true</item> |
| 118 | <item name="android:ellipsize">end</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 119 | <item name="android:shadowColor">@color/default_shadow_color_no_alpha</item> |
Winson Chung | 557d6ed | 2011-07-08 15:34:52 -0700 | [diff] [blame] | 120 | <item name="android:shadowDx">0.0</item> |
Winson Chung | c7aef8c | 2011-09-15 18:53:04 -0700 | [diff] [blame] | 121 | <item name="android:shadowDy">1.0</item> |
| 122 | <item name="android:shadowRadius">4.0</item> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 123 | </style> |
Winson Chung | 1cad91e | 2011-05-25 17:41:01 -0700 | [diff] [blame] | 124 | |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 125 | <style name="DropTargetButton" parent="DropTargetButtonBase" /> |
Adam Cohen | be25822 | 2014-10-24 16:45:59 -0700 | [diff] [blame] | 126 | </resources> |