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 | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 28 | </style> |
| 29 | |
| 30 | <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme"> |
Sunny Goyal | 36d090d | 2018-04-26 13:51:18 -0700 | [diff] [blame] | 31 | <item name="allAppsScrimColor">#EAFFFFFF</item> |
Sunny Goyal | 337fcb7 | 2018-05-30 12:00:43 -0700 | [diff] [blame^] | 32 | <item name="allAppsInterimScrimAlpha">46</item> |
Sunny Goyal | 81a70e5 | 2017-08-18 01:02:20 -0700 | [diff] [blame] | 33 | <item name="allAppsNavBarScrimColor">#66FFFFFF</item> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 34 | <item name="popupColorPrimary">#FFF</item> |
| 35 | <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 --> |
| 36 | <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 --> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 37 | <item name="isMainColorDark">false</item> |
| 38 | <item name="isWorkspaceDarkText">false</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 39 | <item name="workspaceTextColor">@android:color/white</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 40 | <item name="workspaceShadowColor">#B0000000</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 41 | <item name="workspaceAmbientShadowColor">#33000000</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 42 | <item name="workspaceKeyShadowColor">#44000000</item> |
| 43 | <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item> |
Tony Wickham | 093c3ac | 2017-06-26 10:48:41 -0700 | [diff] [blame] | 44 | <item name="widgetsTheme">@style/WidgetContainerTheme</item> |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 45 | </style> |
| 46 | |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 47 | <style name="LauncherTheme" parent="@style/BaseLauncherThemeWithCustomAttrs"></style> |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 48 | |
Sunny Goyal | a6afdff | 2018-05-24 13:49:57 -0700 | [diff] [blame] | 49 | <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme"> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 50 | <item name="workspaceTextColor">#FF212121</item> |
Sunny Goyal | 337fcb7 | 2018-05-30 12:00:43 -0700 | [diff] [blame^] | 51 | <item name="allAppsInterimScrimAlpha">128</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 52 | <item name="workspaceShadowColor">@android:color/transparent</item> |
| 53 | <item name="workspaceAmbientShadowColor">@android:color/transparent</item> |
| 54 | <item name="workspaceKeyShadowColor">@android:color/transparent</item> |
| 55 | <item name="isWorkspaceDarkText">true</item> |
| 56 | <item name="workspaceStatusBarScrim">@null</item> |
| 57 | </style> |
| 58 | |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 59 | <style name="LauncherThemeDark" parent="@style/LauncherTheme"> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 60 | <item name="android:textColorPrimary">#FFFFFFFF</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 61 | <item name="android:textColorSecondary">#FFFFFFFF</item> |
| 62 | <item name="android:textColorTertiary">#CCFFFFFF</item> |
| 63 | <item name="android:textColorHint">#A0FFFFFF</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 64 | <item name="android:colorControlHighlight">#A0FFFFFF</item> |
Sunny Goyal | 12f8038 | 2018-05-14 15:57:59 -0700 | [diff] [blame] | 65 | <item name="android:colorPrimary">#FF212121</item> |
Sunny Goyal | 36d090d | 2018-04-26 13:51:18 -0700 | [diff] [blame] | 66 | <item name="allAppsScrimColor">#EA212121</item> |
Sunny Goyal | 337fcb7 | 2018-05-30 12:00:43 -0700 | [diff] [blame^] | 67 | <item name="allAppsInterimScrimAlpha">102</item> |
Sunny Goyal | 81a70e5 | 2017-08-18 01:02:20 -0700 | [diff] [blame] | 68 | <item name="allAppsNavBarScrimColor">#80000000</item> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 69 | <item name="popupColorPrimary">?android:attr/colorPrimary</item> |
| 70 | <item name="popupColorSecondary">#424242</item> <!-- Gray 800 --> |
| 71 | <item name="popupColorTertiary">#757575</item> <!-- Gray 600 --> |
Tony Wickham | 093c3ac | 2017-06-26 10:48:41 -0700 | [diff] [blame] | 72 | <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 73 | <item name="isMainColorDark">true</item> |
Sunny Goyal | 368ae77 | 2017-05-24 13:19:15 -0700 | [diff] [blame] | 74 | </style> |
| 75 | |
Sunny Goyal | a6afdff | 2018-05-24 13:49:57 -0700 | [diff] [blame] | 76 | <style name="LauncherThemeDark.DarKText" parent="@style/LauncherThemeDark"> |
Sunny Goyal | 337fcb7 | 2018-05-30 12:00:43 -0700 | [diff] [blame^] | 77 | <item name="allAppsInterimScrimAlpha">25</item> |
Sunny Goyal | a6afdff | 2018-05-24 13:49:57 -0700 | [diff] [blame] | 78 | <item name="workspaceTextColor">#FF212121</item> |
| 79 | <item name="workspaceShadowColor">@android:color/transparent</item> |
| 80 | <item name="workspaceAmbientShadowColor">@android:color/transparent</item> |
| 81 | <item name="workspaceKeyShadowColor">@android:color/transparent</item> |
| 82 | <item name="isWorkspaceDarkText">true</item> |
| 83 | <item name="workspaceStatusBarScrim">@null</item> |
| 84 | </style> |
| 85 | |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 86 | <!-- |
| 87 | 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] | 88 | Various foreground colors are overridden to be workspaceTextColor so that they are properly |
| 89 | visible on various wallpapers. |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 90 | --> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 91 | <style name="HomeScreenElementTheme"> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 92 | <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item> |
| 93 | <item name="android:textColorPrimary">?attr/workspaceTextColor</item> |
| 94 | <item name="android:textColorSecondary">?attr/workspaceTextColor</item> |
Sunny Goyal | 9b29ca5 | 2017-02-17 10:39:44 -0800 | [diff] [blame] | 95 | </style> |
| 96 | |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 97 | <!-- Theme for the widget container. Overridden on API 26. --> |
| 98 | <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings"> |
| 99 | <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item> |
| 100 | <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item> |
| 101 | <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item> |
| 102 | </style> |
Sunny Goyal | f1468af | 2016-02-17 11:36:26 -0800 | [diff] [blame] | 103 | |
Tony Wickham | 093c3ac | 2017-06-26 10:48:41 -0700 | [diff] [blame] | 104 | <style name="WidgetContainerTheme.Dark" /> |
| 105 | |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 106 | <style name="FastScrollerPopup" > |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 107 | <item name="android:layout_width">wrap_content</item> |
Sunny Goyal | 1a8f6fb | 2017-06-14 15:35:16 -0700 | [diff] [blame] | 108 | <item name="android:minWidth">@dimen/fastscroll_popup_width</item> |
| 109 | <item name="android:layout_height">@dimen/fastscroll_popup_height</item> |
| 110 | <item name="android:textSize">@dimen/fastscroll_popup_text_size</item> |
| 111 | <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item> |
Sunny Goyal | 3f0a53f | 2016-10-11 15:49:42 -0700 | [diff] [blame] | 112 | <item name="android:gravity">center</item> |
| 113 | <item name="android:alpha">0</item> |
| 114 | <item name="android:elevation">3dp</item> |
| 115 | <item name="android:saveEnabled">false</item> |
| 116 | <item name="android:textColor">@android:color/white</item> |
| 117 | <item name="android:includeFontPadding">false</item> |
| 118 | </style> |
| 119 | |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 120 | <!-- Base theme for BubbleTextView and sub classes --> |
| 121 | <style name="BaseIcon"> |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 122 | <item name="android:layout_width">match_parent</item> |
| 123 | <item name="android:layout_height">match_parent</item> |
Winson Chung | 4b825dcd | 2011-06-19 12:41:22 -0700 | [diff] [blame] | 124 | <item name="android:layout_gravity">center</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 125 | <item name="android:focusable">true</item> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 126 | <item name="android:gravity">center_horizontal</item> |
| 127 | <item name="android:singleLine">true</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 128 | <item name="android:textColor">?android:attr/textColorSecondary</item> |
| 129 | <item name="android:fontFamily">sans-serif-condensed</item> |
Sunny Goyal | c9d3d06 | 2018-03-22 12:18:08 -0700 | [diff] [blame] | 130 | <item name="android:defaultFocusHighlightEnabled">false</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 131 | |
| 132 | <!-- No shadows in the base theme --> |
| 133 | <item name="android:shadowRadius">0</item> |
Sunny Goyal | 1f3f07d | 2017-02-10 16:52:16 -0800 | [diff] [blame] | 134 | </style> |
| 135 | |
| 136 | <!-- Icon displayed on the worksapce --> |
| 137 | <style name="BaseIcon.Workspace"> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 138 | <item name="android:shadowRadius">2.0</item> |
Sunny Goyal | 325b5c7 | 2017-06-11 20:22:08 -0700 | [diff] [blame] | 139 | <item name="android:shadowColor">?attr/workspaceShadowColor</item> |
Mario Bertschler | a693694 | 2017-05-31 14:48:19 -0700 | [diff] [blame] | 140 | <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item> |
Sunny Goyal | 9314b7c | 2017-06-23 10:36:27 -0700 | [diff] [blame] | 141 | <item name="ambientShadowBlur">2.5dp</item> |
| 142 | <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item> |
| 143 | <item name="keyShadowBlur">1dp</item> |
| 144 | <item name="keyShadowOffset">.5dp</item> |
Tony Wickham | 9438ed4 | 2017-01-20 09:38:25 -0800 | [diff] [blame] | 145 | </style> |
| 146 | |
Tony Wickham | c66c3e2 | 2017-04-13 08:20:03 -0700 | [diff] [blame] | 147 | <!-- Theme for the popup container --> |
Tony Wickham | 90038eb | 2017-06-06 15:42:32 -0700 | [diff] [blame] | 148 | <style name="PopupItem"> |
| 149 | <item name="android:colorControlHighlight">?attr/popupColorTertiary</item> |
Tony Wickham | c66c3e2 | 2017-04-13 08:20:03 -0700 | [diff] [blame] | 150 | </style> |
| 151 | |
Sunny Goyal | 5abb9f8 | 2016-02-09 15:22:42 -0800 | [diff] [blame] | 152 | <!-- Drop targets --> |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 153 | <style name="DropTargetButtonBase"> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 154 | <item name="android:drawablePadding">7.5dp</item> |
Tony Wickham | e0dab19 | 2016-09-28 16:22:36 -0700 | [diff] [blame] | 155 | <item name="android:paddingLeft">16dp</item> |
| 156 | <item name="android:paddingRight">16dp</item> |
Mario Bertschler | 54ba601 | 2017-06-08 10:53:53 -0700 | [diff] [blame] | 157 | <item name="android:textColor">?attr/workspaceTextColor</item> |
Sunny Goyal | 0e375f9 | 2014-10-23 11:38:15 -0700 | [diff] [blame] | 158 | <item name="android:textSize">@dimen/drop_target_text_size</item> |
Winson Chung | 90576b5 | 2011-09-27 17:45:27 -0700 | [diff] [blame] | 159 | <item name="android:singleLine">true</item> |
| 160 | <item name="android:ellipsize">end</item> |
Mario Bertschler | 54ba601 | 2017-06-08 10:53:53 -0700 | [diff] [blame] | 161 | <item name="android:shadowColor">?attr/workspaceShadowColor</item> |
Winson Chung | 557d6ed | 2011-07-08 15:34:52 -0700 | [diff] [blame] | 162 | <item name="android:shadowDx">0.0</item> |
Winson Chung | c7aef8c | 2011-09-15 18:53:04 -0700 | [diff] [blame] | 163 | <item name="android:shadowDy">1.0</item> |
| 164 | <item name="android:shadowRadius">4.0</item> |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 165 | </style> |
Winson Chung | 1cad91e | 2011-05-25 17:41:01 -0700 | [diff] [blame] | 166 | |
Sunny Goyal | 7066003 | 2015-05-14 00:07:08 -0700 | [diff] [blame] | 167 | <style name="DropTargetButton" parent="DropTargetButtonBase" /> |
Mario Bertschler | 93e39ec | 2017-06-09 10:20:17 -0700 | [diff] [blame] | 168 | |
| 169 | <style name="TextTitle"> |
| 170 | <item name="android:fontFamily">sans-serif</item> |
| 171 | </style> |
Sunny Goyal | 5931ca0 | 2017-06-19 17:29:48 -0700 | [diff] [blame] | 172 | |
| 173 | <style name="AllAppsEmptySearchBackground"> |
| 174 | <item name="android:colorPrimary">#E0E0E0</item> |
| 175 | <item name="android:colorControlHighlight">#BDBDBD</item> |
| 176 | <item name="android:colorForeground">@color/all_apps_bg_hand_fill</item> |
| 177 | </style> |
| 178 | <style name="AllAppsEmptySearchBackground.Dark"> |
| 179 | <item name="android:colorPrimary">#9AA0A6</item> |
| 180 | <item name="android:colorControlHighlight">#DFE1E5</item> |
| 181 | <item name="android:colorForeground">@color/all_apps_bg_hand_fill_dark</item> |
| 182 | </style> |
Adam Cohen | be25822 | 2014-10-24 16:45:59 -0700 | [diff] [blame] | 183 | </resources> |