styles.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. </style>
  27. <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
  28. <style name="Theme" parent="@style/LauncherTheme"></style>
  29. <!-- Theme for the widget container. Overridden on API 25. -->
  30. <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
  31. <item name="colorSecondary">@color/fallback_secondary_color</item>
  32. </style>
  33. <!-- Overscroll effect -->
  34. <style name="CustomOverscroll" />
  35. <style name="CustomOverscroll.Light" parent="@android:style/Theme.DeviceDefault.Light">
  36. <item name="android:colorEdgeEffect">@color/folder_edge_effect_color</item>
  37. </style>
  38. <style name="CustomOverscroll.Dark">
  39. <item name="android:colorEdgeEffect">@color/workspace_edge_effect_color</item>
  40. </style>
  41. <!-- Different icons -->
  42. <style name="Icon">
  43. <item name="android:layout_width">match_parent</item>
  44. <item name="android:layout_height">match_parent</item>
  45. <item name="android:layout_gravity">center</item>
  46. <item name="android:gravity">center_horizontal</item>
  47. <item name="android:singleLine">true</item>
  48. <item name="android:ellipsize">marquee</item>
  49. <item name="android:textColor">@color/workspace_icon_text_color</item>
  50. <item name="android:shadowRadius">2.0</item>
  51. <item name="android:shadowColor">#B0000000</item>
  52. <item name="android:fontFamily">sans-serif-condensed</item>
  53. </style>
  54. <style name="Icon.AllApps">
  55. <item name="android:background">@null</item>
  56. <item name="android:textColor">@color/quantum_panel_text_color</item>
  57. <item name="android:drawablePadding">@dimen/dynamic_grid_icon_drawable_padding</item>
  58. <item name="android:shadowRadius">0</item>
  59. <item name="android:paddingLeft">4dp</item>
  60. <item name="android:paddingRight">4dp</item>
  61. <item name="customShadows">false</item>
  62. </style>
  63. <style name="Icon.Folder">
  64. <item name="android:background">@null</item>
  65. <item name="android:textColor">@color/quantum_panel_text_color</item>
  66. <item name="android:shadowRadius">0</item>
  67. <item name="android:textSize">@dimen/folder_child_text_size</item>
  68. <item name="android:gravity">center_horizontal</item>
  69. <item name="android:includeFontPadding">false</item>
  70. <item name="customShadows">false</item>
  71. <item name="iconDisplay">folder</item>
  72. </style>
  73. <style name="Icon.DeepShortcut">
  74. <item name="android:gravity">start|center_vertical</item>
  75. <item name="android:textAlignment">viewStart</item>
  76. <item name="android:elevation">@dimen/deep_shortcuts_elevation</item>
  77. <item name="android:paddingStart">@dimen/bg_pill_height</item>
  78. <item name="android:paddingEnd">@dimen/deep_shortcut_padding_end</item>
  79. <item name="android:drawableEnd">@drawable/deep_shortcuts_drag_handle</item>
  80. <item name="android:drawablePadding">@dimen/deep_shortcut_drawable_padding</item>
  81. <item name="android:textColor">#FF212121</item>
  82. <item name="android:textSize">14sp</item>
  83. <item name="android:fontFamily">sans-serif</item>
  84. <item name="android:shadowRadius">0</item>
  85. <item name="customShadows">false</item>
  86. <item name="layoutHorizontal">true</item>
  87. <item name="iconSizeOverride">@dimen/deep_shortcut_icon_size</item>
  88. </style>
  89. <!-- Drop targets -->
  90. <style name="DropTargetButtonBase">
  91. <item name="android:drawablePadding">7.5dp</item>
  92. <item name="android:paddingLeft">16dp</item>
  93. <item name="android:paddingRight">16dp</item>
  94. <item name="android:textColor">#FFFFFFFF</item>
  95. <item name="android:textSize">@dimen/drop_target_text_size</item>
  96. <item name="android:singleLine">true</item>
  97. <item name="android:ellipsize">end</item>
  98. <item name="android:shadowColor">#FF000000</item>
  99. <item name="android:shadowDx">0.0</item>
  100. <item name="android:shadowDy">1.0</item>
  101. <item name="android:shadowRadius">4.0</item>
  102. </style>
  103. <style name="DropTargetButton" parent="DropTargetButtonBase" />
  104. <!-- Virtual preloaders -->
  105. <style name="PreloadIcon">
  106. <item name="background">@drawable/virtual_preload</item>
  107. <item name="indicatorSize">4dp</item>
  108. <item name="ringOutset">4dp</item>
  109. </style>
  110. <style name="PreloadIcon.Folder">
  111. <item name="background">@drawable/virtual_preload_folder</item>
  112. <item name="indicatorSize">4dp</item>
  113. <item name="ringOutset">4dp</item>
  114. </style>
  115. </resources>