styles.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. <resources>
  20. <!-- Launcher theme -->
  21. <style name="BaseLauncherTheme" parent="@android:style/Theme.DeviceDefault.Light">
  22. <item name="disabledIconAlpha">.54</item>
  23. <item name="android:colorBackgroundCacheHint">@null</item>
  24. <item name="android:colorEdgeEffect">#FF757575</item>
  25. <item name="android:windowActionBar">false</item>
  26. <item name="android:windowBackground">@android:color/transparent</item>
  27. <item name="android:windowNoTitle">true</item>
  28. <item name="android:windowShowWallpaper">true</item>
  29. </style>
  30. <style name="LauncherTheme" parent="@style/BaseLauncherTheme">
  31. <item name="android:textColorSecondary">#DE000000</item>
  32. <item name="allAppsScrimColor">?android:attr/colorBackgroundFloating</item>
  33. <item name="allappsHeaderProtectionColor">@color/popup_color_tertiary_light</item>
  34. <item name="allAppsNavBarScrimColor">#66FFFFFF</item>
  35. <item name="popupColorPrimary">@color/popup_color_primary_light</item>
  36. <item name="popupColorSecondary">@color/popup_color_secondary_light</item>
  37. <item name="popupColorTertiary">@color/popup_color_tertiary_light</item>
  38. <item name="popupShadeFirst">@color/popup_shade_first_light</item>
  39. <item name="popupShadeSecond">@color/popup_shade_second_light</item>
  40. <item name="popupShadeThird">@color/popup_shade_third_light</item>
  41. <item name="popupNotificationDotColor">@color/popup_notification_dot_light</item>
  42. <item name="isMainColorDark">false</item>
  43. <item name="isWorkspaceDarkText">false</item>
  44. <item name="workspaceTextColor">@color/workspace_text_color_light</item>
  45. <item name="workspaceShadowColor">#B0000000</item>
  46. <item name="workspaceAmbientShadowColor">#40000000</item>
  47. <item name="workspaceKeyShadowColor">#89000000</item>
  48. <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
  49. <item name="widgetsTheme">@style/WidgetContainerTheme</item>
  50. <item name="folderDotColor">@color/folder_dot_color</item>
  51. <item name="folderPaginationColor">@color/folder_pagination_color_light</item>
  52. <item name="folderPreviewColor">@color/folder_preview_light</item>
  53. <item name="folderBackgroundColor">@color/folder_background_light</item>
  54. <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
  55. <item name="folderTextColor">?android:attr/textColorPrimary</item>
  56. <item name="isFolderDarkText">true</item>
  57. <item name="folderHintColor">@color/folder_hint_text_color_dark</item>
  58. <item name="loadingIconColor">#CCFFFFFF</item>
  59. <item name="iconOnlyShortcutColor">?android:attr/textColorSecondary</item>
  60. <item name="eduHalfSheetBGColor">?android:attr/colorAccent</item>
  61. <item name="workspaceAccentColor">@color/workspace_accent_color_light</item>
  62. <item name="dropTargetHoverTextColor">@color/workspace_text_color_dark</item>
  63. <item name="overviewScrimColor">@color/overview_scrim</item>
  64. <item name="preloadIconAccentColor">@color/preload_icon_accent_color_light</item>
  65. <item name="preloadIconBackgroundColor">@color/preload_icon_background_color_light</item>
  66. <item name="android:windowTranslucentStatus">false</item>
  67. <item name="android:windowTranslucentNavigation">false</item>
  68. <item name="android:windowDrawsSystemBarBackgrounds">true</item>
  69. <item name="android:statusBarColor">#00000000</item>
  70. <item name="android:navigationBarColor">#00000000</item>
  71. </style>
  72. <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme" />
  73. <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme">
  74. <item name="workspaceTextColor">@color/workspace_text_color_dark</item>
  75. <item name="workspaceShadowColor">@android:color/transparent</item>
  76. <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
  77. <item name="workspaceKeyShadowColor">@android:color/transparent</item>
  78. <item name="isWorkspaceDarkText">true</item>
  79. <item name="workspaceStatusBarScrim">@null</item>
  80. <item name="workspaceAccentColor">@color/workspace_accent_color_dark</item>
  81. <item name="dropTargetHoverTextColor">@color/workspace_text_color_light</item>
  82. </style>
  83. <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
  84. <item name="android:textColorPrimary">@color/text_color_primary_dark</item>
  85. <item name="android:textColorSecondary">@color/text_color_secondary_dark</item>
  86. <item name="android:textColorTertiary">@color/text_color_tertiary_dark</item>
  87. <item name="android:textColorHint">#A0FFFFFF</item>
  88. <item name="android:colorControlHighlight">#19FFFFFF</item>
  89. <item name="android:colorPrimary">#FF212121</item>
  90. <item name="allAppsScrimColor">?android:attr/colorBackgroundFloating</item>
  91. <item name="allAppsNavBarScrimColor">#80000000</item>
  92. <item name="popupColorPrimary">@color/popup_color_primary_dark</item>
  93. <item name="popupColorSecondary">@color/popup_color_secondary_dark</item>
  94. <item name="popupColorTertiary">@color/popup_color_tertiary_dark</item>
  95. <item name="popupNotificationDotColor">@color/popup_notification_dot_dark</item>
  96. <item name="popupShadeFirst">@color/popup_shade_first_dark</item>
  97. <item name="popupShadeSecond">@color/popup_shade_second_dark</item>
  98. <item name="popupShadeThird">@color/popup_shade_third_dark</item>
  99. <item name="widgetsTheme">@style/WidgetContainerTheme.Dark</item>
  100. <item name="folderDotColor">@color/folder_dot_color</item>
  101. <item name="folderPaginationColor">@color/folder_pagination_color_dark</item>
  102. <item name="folderPreviewColor">@color/folder_preview_dark</item>
  103. <item name="folderBackgroundColor">@color/folder_background_dark</item>
  104. <item name="folderIconBorderColor">?android:attr/colorPrimary</item>
  105. <item name="isFolderDarkText">false</item>
  106. <item name="folderHintColor">@color/folder_hint_text_color_light</item>
  107. <item name="isMainColorDark">true</item>
  108. <item name="loadingIconColor">#99FFFFFF</item>
  109. <item name="iconOnlyShortcutColor">#B3FFFFFF</item>
  110. <item name="eduHalfSheetBGColor">#DD000000</item>
  111. <item name="overviewScrimColor">@color/overview_scrim_dark</item>
  112. <item name="preloadIconAccentColor">@color/preload_icon_accent_color_dark</item>
  113. <item name="preloadIconBackgroundColor">@color/preload_icon_background_color_dark</item>
  114. </style>
  115. <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark"/>
  116. <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark">
  117. <item name="android:colorControlHighlight">#19212121</item>
  118. <item name="workspaceTextColor">@color/workspace_text_color_dark</item>
  119. <item name="workspaceShadowColor">@android:color/transparent</item>
  120. <item name="workspaceAmbientShadowColor">@android:color/transparent</item>
  121. <item name="workspaceKeyShadowColor">@android:color/transparent</item>
  122. <item name="isWorkspaceDarkText">true</item>
  123. <item name="workspaceStatusBarScrim">@null</item>
  124. <item name="workspaceAccentColor">@color/workspace_accent_color_dark</item>
  125. <item name="dropTargetHoverTextColor">@color/workspace_text_color_light</item>
  126. </style>
  127. <!-- A derivative project can extend these themes to customize the application theme without
  128. affecting the base theme -->
  129. <style name="AppTheme" parent="@style/LauncherTheme" />
  130. <style name="AppTheme.DarkMainColor" parent="@style/LauncherTheme.DarkMainColor" />
  131. <style name="AppTheme.DarkText" parent="@style/LauncherTheme.DarkText" />
  132. <style name="AppTheme.Dark" parent="@style/LauncherTheme.Dark" />
  133. <style name="AppTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark.DarkMainColor" />
  134. <style name="AppTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark.DarkText" />
  135. <style name="HomeSettings.Theme" parent="@android:style/Theme.DeviceDefault.Settings">
  136. <item name="android:navigationBarColor">?android:colorPrimaryDark</item>
  137. <item name="android:windowActionBar">false</item>
  138. <item name="android:windowNoTitle">true</item>
  139. <item name="preferenceTheme">@style/HomeSettings.PreferenceTheme</item>
  140. </style>
  141. <style name="HomeSettings.PreferenceTheme" parent="@style/PreferenceThemeOverlay.v14.Material">
  142. <item name="preferenceFragmentCompatStyle">@style/HomeSettings.FragmentCompatStyle</item>
  143. </style>
  144. <style name="HomeSettings.FragmentCompatStyle" parent="@style/PreferenceFragment.Material">
  145. <item name="android:layout">@layout/home_settings</item>
  146. </style>
  147. <!--
  148. Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
  149. Various foreground colors are overridden to be workspaceTextColor so that they are properly
  150. visible on various wallpapers.
  151. -->
  152. <style name="HomeScreenElementTheme">
  153. <item name="android:colorEdgeEffect">?attr/workspaceTextColor</item>
  154. <item name="android:textColorPrimary">?attr/workspaceTextColor</item>
  155. <item name="android:textColorSecondary">?attr/workspaceTextColor</item>
  156. </style>
  157. <!-- Theme for the widget container. -->
  158. <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
  159. <item name="android:colorPrimaryDark">#E8EAED</item>
  160. <item name="android:textColorSecondary">?android:attr/textColorPrimary</item>
  161. <item name="android:colorEdgeEffect">?android:attr/textColorSecondary</item>
  162. <item name="widgetPickerHeaderAppTitleColor">@color/app_title_text_light</item>
  163. <item name="widgetPickerHeaderAppSubtitleColor">@color/app_subtitle_text_light</item>
  164. </style>
  165. <style name="WidgetContainerTheme.Dark" parent="AppTheme.Dark">
  166. <item name="android:colorEdgeEffect">?android:attr/textColorSecondary</item>
  167. <item name="android:colorPrimaryDark">#616161</item> <!-- Gray 700 -->
  168. <item name="widgetPickerHeaderAppTitleColor">@color/app_title_text_dark</item>
  169. <item name="widgetPickerHeaderAppSubtitleColor">@color/app_subtitle_text_dark</item>
  170. </style>
  171. <style name="FastScrollerPopup" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
  172. <item name="android:layout_width">wrap_content</item>
  173. <item name="android:minWidth">@dimen/fastscroll_popup_width</item>
  174. <item name="android:layout_height">@dimen/fastscroll_popup_height</item>
  175. <item name="android:textSize">@dimen/fastscroll_popup_text_size</item>
  176. <item name="android:paddingEnd">@dimen/fastscroll_popup_padding</item>
  177. <item name="android:gravity">center</item>
  178. <item name="android:alpha">0</item>
  179. <item name="android:elevation">3dp</item>
  180. <item name="android:saveEnabled">false</item>
  181. <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
  182. <item name="android:includeFontPadding">false</item>
  183. <item name="android:importantForAccessibility">no</item>
  184. </style>
  185. <style name="BaseIconRoot" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"/>
  186. <style name="BaseIconUnBounded" parent="BaseIconRoot">
  187. <item name="android:layout_width">match_parent</item>
  188. <item name="android:layout_height">match_parent</item>
  189. <item name="android:layout_gravity">center</item>
  190. <item name="android:focusable">true</item>
  191. <item name="android:gravity">center_horizontal</item>
  192. <item name="android:textColor">?android:attr/textColorSecondary</item>
  193. <item name="android:defaultFocusHighlightEnabled">false</item>
  194. <!-- No shadows in the base theme -->
  195. <item name="android:shadowRadius">0</item>
  196. </style>
  197. <!-- Base theme for BubbleTextView and sub classes -->
  198. <style name="BaseIcon" parent="BaseIconUnBounded">
  199. <item name="android:lines">1</item>
  200. </style>
  201. <!-- Base theme for AllApps BubbleTextViews -->
  202. <style name="BaseIcon.AllApps" parent="BaseIcon">
  203. <item name="android:layout_width">match_parent</item>
  204. <item name="android:layout_height">wrap_content</item>
  205. <item name="android:stateListAnimator">@animator/all_apps_fastscroll_icon_anim</item>
  206. <item name="android:paddingLeft">@dimen/dynamic_grid_cell_padding_x</item>
  207. <item name="android:paddingRight">@dimen/dynamic_grid_cell_padding_x</item>
  208. </style>
  209. <!-- Icon displayed on the workspace -->
  210. <style name="BaseIcon.Workspace.Shadows" parent="BaseIcon">
  211. <item name="android:shadowRadius">2.0</item>
  212. <item name="android:shadowColor">?attr/workspaceShadowColor</item>
  213. <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item>
  214. <item name="ambientShadowBlur">1.5dp</item>
  215. <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item>
  216. <item name="keyShadowBlur">.5dp</item>
  217. <item name="keyShadowOffsetX">.5dp</item>
  218. <item name="keyShadowOffsetY">.5dp</item>
  219. </style>
  220. <!-- Intentionally empty so we can override -->
  221. <style name="BaseIcon.Workspace" parent="BaseIcon.Workspace.Shadows">
  222. </style>
  223. <!-- Theme for the popup container -->
  224. <style name="PopupItem">
  225. <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
  226. </style>
  227. <style name="PopupItemIconOnly">
  228. <item name="android:colorControlHighlight">?attr/popupColorTertiary</item>
  229. <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
  230. </style>
  231. <!-- Drop targets -->
  232. <style name="DropTargetButtonBase" parent="@android:style/TextAppearance.DeviceDefault.Medium">
  233. <item name="android:drawablePadding">@dimen/drop_target_button_drawable_padding</item>
  234. <item name="android:padding">14dp</item>
  235. <item name="android:textColor">@color/drop_target_text</item>
  236. <item name="android:textSize">@dimen/drop_target_text_size</item>
  237. <item name="android:singleLine">true</item>
  238. <item name="android:ellipsize">end</item>
  239. <item name="android:background">@drawable/drop_target_background</item>
  240. </style>
  241. <style name="DropTargetButton" parent="DropTargetButtonBase" />
  242. <style name="TextHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
  243. <style name="PrimaryHeadline" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"/>
  244. <style name="TextTitle" parent="@android:style/TextAppearance.DeviceDefault" />
  245. <style name="Button.TopRounded.Bordered" parent="@android:style/Widget.Material.Button">
  246. <item name="android:background">@drawable/button_top_rounded_bordered_ripple</item>
  247. <item name="android:stateListAnimator">@null</item>
  248. </style>
  249. <style name="Button.BottomRounded.Colored" parent="@android:style/Widget.Material.Button">
  250. <item name="android:background">@drawable/button_bottom_rounded_colored_ripple</item>
  251. <item name="android:stateListAnimator">@null</item>
  252. </style>
  253. <style name="Button.Rounded.Colored" parent="@android:style/Widget.Material.Button">
  254. <item name="android:background">@drawable/button_rounded_colored_ripple</item>
  255. <item name="android:stateListAnimator">@null</item>
  256. </style>
  257. <style name="Button.FullRounded.Colored" parent="@android:style/Widget.Material.Button">
  258. <item name="android:background">@drawable/full_rounded_colored_ripple</item>
  259. <item name="android:stateListAnimator">@null</item>
  260. </style>
  261. <style name="AddItemActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
  262. <item name="widgetsTheme">@style/WidgetContainerTheme</item>
  263. <item name="android:windowLightStatusBar">true</item>
  264. <item name="android:windowTranslucentStatus">true</item>
  265. </style>
  266. <style name="FolderStyleDefault">
  267. <item name="folderTopPadding">24dp</item>
  268. <item name="folderCellHeight">94dp</item>
  269. <item name="folderCellWidth">80dp</item>
  270. <item name="folderBorderSpace">16dp</item>
  271. <item name="folderFooterHeight">56dp</item>
  272. </style>
  273. <style name="CellStyleDefault">
  274. <item name="iconDrawablePadding">7dp</item>
  275. </style>
  276. <style name="AllAppsStyleDefault">
  277. <item name="horizontalPadding">16dp</item>
  278. </style>
  279. </resources>