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 | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 29 | </style> |
| 30 | |
| 31 | <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme"> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 32 | <item name="allAppsScrimColor">#DDFFFFFF</item> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 33 | <item name="popupColorPrimary">#FFF</item> |
| 34 | <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 --> |
| 35 | <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 --> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 36 | <item name="isMainColorDark">false</item> |
| 37 | <item name="isWorkspaceDarkText">false</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 38 | <item name="workspaceTextColor">@android:color/white</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 39 | <item name="workspaceShadowColor">#B0000000</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 40 | <item name="workspaceAmbientShadowColor">#33000000</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 41 | <item name="workspaceKeyShadowColor">#44000000</item> |
| 42 | <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item> |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 43 | </style> |
| 44 | |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 45 | <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs"></style> |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 46 | |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 47 | <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 Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 56 | <style name="LauncherThemeDark" parent="@style/LauncherTheme"> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 57 | <item name="android:textColorPrimary">#FFFFFFFF</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 58 | <item name="android:textColorSecondary">#FFFFFFFF</item> |
| 59 | <item name="android:textColorTertiary">#CCFFFFFF</item> |
| 60 | <item name="android:textColorHint">#A0FFFFFF</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 61 | <item name="android:colorControlHighlight">#A0FFFFFF</item> |
| 62 | <item name="android:colorPrimary">#FF333333</item> |
| 63 | <item name="allAppsScrimColor">#33000000</item> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 64 | <item name="popupColorPrimary">?android:attr/colorPrimary</item> |
| 65 | <item name="popupColorSecondary">#424242</item> <!-- Gray 800 --> |
| 66 | <item name="popupColorTertiary">#757575</item> <!-- Gray 600 --> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 67 | <item name="isMainColorDark">true</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 68 | </style> |
| 69 | |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 70 | <!-- |
| 71 | Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper. |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 72 | Various foreground colors are overridden to be workspaceTextColor so that they are properly |
| 73 | visible on various wallpapers. |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 74 | --> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 75 | <style name="HomeScreenElementTheme"> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 76 | <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item> |
| 77 | <item name="android:textColorPrimary">?attr/workspaceTextColor</item> |
| 78 | <item name="android:textColorSecondary">?attr/workspaceTextColor</item> |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 79 | </style> |
| 80 | |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 81 | <!-- 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 Goyal | f1468af | 2016-02-17 11:36:26 -0800 | [diff] [blame] | 87 | |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 88 | <style name="FastScrollerPopup" > |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 89 | <item name="android:layout_width">wrap_content</item> |
Sunny Goyal | 1a8f6fb | 2017-06-14 15:35:16 -0700 | [diff] [blame^] | 90 | <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 Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 94 | <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 Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 102 | <!-- 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 Sapperstein | 5f7750d | 2016-06-20 12:48:22 -0700 | [diff] [blame] | 106 | </style> |
| 107 | |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 108 | <!-- Base theme for BubbleTextView and sub classes --> |
| 109 | <style name="BaseIcon"> |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 110 | <item name="android:layout_width">match_parent</item> |
| 111 | <item name="android:layout_height">match_parent</item> |
Winson Chung | 4b825dcd | 2011-06-19 12:41:22 -0700 | [diff] [blame] | 112 | <item name="android:layout_gravity">center</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 113 | <item name="android:focusable">true</item> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 114 | <item name="android:gravity">center_horizontal</item> |
| 115 | <item name="android:singleLine">true</item> |
| 116 | <item name="android:ellipsize">marquee</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 117 | <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 Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 128 | <item name="android:shadowRadius">2.0</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 129 | <item name="android:shadowColor">?attr/workspaceShadowColor</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 130 | <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item> |
| 131 | <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 132 | </style> |
| 133 | |
Tony Wickham | c66c3e2 | 2017-04-13 08:20:03 -0700 | [diff] [blame] | 134 | <!-- Theme for the popup container --> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 135 | <style name="PopupItem"> |
| 136 | <item name="android:colorControlHighlight">?attr/popupColorTertiary</item> |
Tony Wickham | c66c3e2 | 2017-04-13 08:20:03 -0700 | [diff] [blame] | 137 | </style> |
| 138 | |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 139 | <!-- Drop targets --> |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 140 | <style name="DropTargetButtonBase"> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 141 | <item name="android:drawablePadding">7.5dp</item> |
Tony Wickham | e0dab19 | 2016-09-28 16:22:36 -0700 | [diff] [blame] | 142 | <item name="android:paddingLeft">16dp</item> |
| 143 | <item name="android:paddingRight">16dp</item> |
Mario Bertschler | 54ba601 | 2017-06-08 10:53:53 -0700 | [diff] [blame] | 144 | <item name="android:textColor">?attr/workspaceTextColor</item> |
Sunny Goyal | 0e375f9 | 2014-10-23 11:38:15 -0700 | [diff] [blame] | 145 | <item name="android:textSize">@dimen/drop_target_text_size</item> |
Winson Chung | 90576b5 | 2011-09-27 17:45:27 -0700 | [diff] [blame] | 146 | <item name="android:singleLine">true</item> |
| 147 | <item name="android:ellipsize">end</item> |
Mario Bertschler | 54ba601 | 2017-06-08 10:53:53 -0700 | [diff] [blame] | 148 | <item name="android:shadowColor">?attr/workspaceShadowColor</item> |
Winson Chung | 557d6ed | 2011-07-08 15:34:52 -0700 | [diff] [blame] | 149 | <item name="android:shadowDx">0.0</item> |
Winson Chung | c7aef8c | 2011-09-15 18:53:04 -0700 | [diff] [blame] | 150 | <item name="android:shadowDy">1.0</item> |
| 151 | <item name="android:shadowRadius">4.0</item> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 152 | </style> |
Winson Chung | 1cad91e | 2011-05-25 17:41:01 -0700 | [diff] [blame] | 153 | |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 154 | <style name="DropTargetButton" parent="DropTargetButtonBase" /> |
Mario Bertschler | 93e39ec | 2017-06-09 10:20:17 -0700 | [diff] [blame] | 155 | |
| 156 | <style name="TextTitle"> |
| 157 | <item name="android:fontFamily">sans-serif</item> |
| 158 | </style> |
Adam Cohen | be25822 | 2014-10-24 16:45:59 -0700 | [diff] [blame] | 159 | </resources> |