styles.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.NoActionBar">
  22. <item name="android:windowBackground">@android:color/transparent</item>
  23. <item name="android:colorBackgroundCacheHint">@null</item>
  24. <item name="android:windowShowWallpaper">true</item>
  25. <item name="android:windowNoTitle">true</item>
  26. <item name="android:colorEdgeEffect">#FF757575</item>
  27. </style>
  28. <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
  29. <!-- Theme for the widget container. Overridden on API 26. -->
  30. <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
  31. <item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
  32. <item name="android:textColorPrimary">?android:attr/textColorPrimaryInverse</item>
  33. <item name="android:textColorSecondary">?android:attr/textColorSecondaryInverse</item>
  34. </style>
  35. <style name="FastScrollerPopup" >
  36. <item name="android:background">@drawable/container_fastscroll_popup_bg</item>
  37. <item name="android:layout_width">wrap_content</item>
  38. <item name="android:minWidth">@dimen/container_fastscroll_popup_size</item>
  39. <item name="android:layout_height">@dimen/container_fastscroll_popup_size</item>
  40. <item name="android:textSize">@dimen/container_fastscroll_popup_text_size</item>
  41. <item name="android:gravity">center</item>
  42. <item name="android:alpha">0</item>
  43. <item name="android:elevation">3dp</item>
  44. <item name="android:saveEnabled">false</item>
  45. <item name="android:textColor">@android:color/white</item>
  46. <item name="android:includeFontPadding">false</item>
  47. </style>
  48. <!-- Style for nav bar background in all-apps screen -->
  49. <style name="AllAppsNavBarProtection">
  50. <item name="android:alpha">?android:attr/spotShadowAlpha</item>
  51. <item name="android:background">@color/default_shadow_color_no_alpha</item>
  52. </style>
  53. <!-- Base theme for BubbleTextView and sub classes -->
  54. <style name="BaseIcon">
  55. <item name="android:layout_width">match_parent</item>
  56. <item name="android:layout_height">match_parent</item>
  57. <item name="android:layout_gravity">center</item>
  58. <item name="android:focusable">true</item>
  59. <item name="android:gravity">center_horizontal</item>
  60. <item name="android:singleLine">true</item>
  61. <item name="android:ellipsize">marquee</item>
  62. <item name="android:textColor">?android:attr/textColorSecondary</item>
  63. <item name="android:fontFamily">sans-serif-condensed</item>
  64. <!-- No shadows in the base theme -->
  65. <item name="android:shadowRadius">0</item>
  66. <item name="customShadows">false</item>
  67. </style>
  68. <!-- Icon displayed on the worksapce -->
  69. <style name="BaseIcon.Workspace">
  70. <item name="customShadows">true</item>
  71. <item name="android:textColor">@color/workspace_icon_text_color</item>
  72. <item name="android:shadowRadius">2.0</item>
  73. <item name="android:shadowColor">#B0000000</item>
  74. </style>
  75. <!-- Drop targets -->
  76. <style name="DropTargetButtonBase">
  77. <item name="android:drawablePadding">7.5dp</item>
  78. <item name="android:paddingLeft">16dp</item>
  79. <item name="android:paddingRight">16dp</item>
  80. <item name="android:textColor">@color/workspace_icon_text_color</item>
  81. <item name="android:textSize">@dimen/drop_target_text_size</item>
  82. <item name="android:singleLine">true</item>
  83. <item name="android:ellipsize">end</item>
  84. <item name="android:shadowColor">@color/default_shadow_color_no_alpha</item>
  85. <item name="android:shadowDx">0.0</item>
  86. <item name="android:shadowDy">1.0</item>
  87. <item name="android:shadowRadius">4.0</item>
  88. </style>
  89. <style name="DropTargetButton" parent="DropTargetButtonBase" />
  90. </resources>