styles.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2021 The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <resources>
  15. <!-- App themes -->
  16. <style name="LauncherTheme" parent="@style/BaseLauncherTheme">
  17. <item name="overviewButtonTextColor">@color/go_overview_text_color</item>
  18. <item name="overviewButtonIconColor">@color/go_overview_text_color</item>
  19. <item name="overviewButtonBackgroundColor">@color/go_overview_button_color</item>
  20. <item name="modalDialogBackground">@color/go_modal_dialog_background</item>
  21. </style>
  22. <style name="LauncherTheme.Dark" parent="@style/LauncherTheme">
  23. <item name="overviewButtonTextColor">@color/go_overview_text_color_dark</item>
  24. <item name="overviewButtonIconColor">@color/go_overview_text_color_dark</item>
  25. <item name="overviewButtonBackgroundColor">@color/go_overview_button_color_dark</item>
  26. <item name="modalDialogBackground">@color/go_modal_dialog_background_dark</item>
  27. </style>
  28. <!-- Overview -->
  29. <style name="GoOverviewActionButton">
  30. <item name="android:tint">?attr/overviewButtonIconColor</item>
  31. <item name="android:backgroundTint">?attr/overviewButtonBackgroundColor</item>
  32. <item name="android:background">@drawable/round_rect_button</item>
  33. <item name="android:layout_width">@dimen/go_overview_button_width</item>
  34. <item name="android:layout_height">@dimen/go_overview_button_height</item>
  35. <item name="android:layout_gravity">center_horizontal</item>
  36. </style>
  37. <style name="GoOverviewActionButtonCaption">
  38. <item name="android:fontFamily">sans-serif-medium</item>
  39. <item name="android:textSize">14dp</item>
  40. <item name="android:textColor">?attr/overviewButtonTextColor</item>
  41. <item name="android:lineHeight">20dp</item>
  42. <item name="android:textAlignment">center</item>
  43. <item name="android:importantForAccessibility">no</item>
  44. <item name="android:layout_width">wrap_content</item>
  45. <item name="android:layout_height">wrap_content</item>
  46. <item name="android:layout_marginTop">@dimen/go_overview_button_caption_margin</item>
  47. <item name="android:layout_gravity">center_horizontal</item>
  48. </style>
  49. <style name="GoOverviewActionButtonContainer">
  50. <item name="android:layout_width">@dimen/go_overview_button_container_width</item>
  51. <item name="android:layout_height">wrap_content</item>
  52. <item name="android:orientation">vertical</item>
  53. </style>
  54. <!-- Modal Dialogs -->
  55. <style name="ModalDialogTitle">
  56. <item name="android:fontFamily">sans-serif-medium</item>
  57. <item name="android:textSize">20sp</item>
  58. <item name="android:textColor">?android:attr/textColorPrimary</item>
  59. <item name="android:lineHeight">24dp</item>
  60. <item name="android:layout_width">match_parent</item>
  61. <item name="android:layout_height">wrap_content</item>
  62. <item name="android:layout_gravity">center_horizontal</item>
  63. </style>
  64. <style name="ModalDialogText">
  65. <item name="android:fontFamily">sans-serif-medium</item>
  66. <item name="android:textSize">16sp</item>
  67. <item name="android:textColor">?android:attr/textColorSecondary</item>
  68. <item name="android:lineHeight">24dp</item>
  69. <item name="android:layout_width">match_parent</item>
  70. <item name="android:layout_height">wrap_content</item>
  71. <item name="android:layout_gravity">center_horizontal</item>
  72. </style>
  73. <style name="ModalDialogButton" parent="@style/Widget.AppCompat.Button.Borderless">
  74. <item name="android:textSize">14sp</item>
  75. <item name="android:textColor">?android:attr/colorAccent</item>
  76. <item name="android:lineHeight">20dp</item>
  77. <item name="android:layout_width">wrap_content</item>
  78. <item name="android:layout_height">wrap_content</item>
  79. </style>
  80. </resources>