styles.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2018 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. xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
  16. <style name="TextAppearance.GestureTutorial"
  17. parent="@android:style/Theme.DeviceDefault.DayNight" />
  18. <style name="TextAppearance.GestureTutorial.CallToAction"
  19. parent="@android:style/Theme.DeviceDefault.DayNight" />
  20. <style name="TextAppearance.GestureTutorial.Title"
  21. parent="TextAppearance.GestureTutorial">
  22. <item name="android:gravity">center</item>
  23. <item name="android:textColor">?android:attr/textColorPrimary</item>
  24. <item name="android:textSize">28sp</item>
  25. </style>
  26. <style name="TextAppearance.GestureTutorial.Subtitle"
  27. parent="TextAppearance.GestureTutorial">
  28. <item name="android:gravity">center</item>
  29. <item name="android:textColor">?android:attr/textColorTertiary</item>
  30. <item name="android:letterSpacing">0.03</item>
  31. <item name="android:textSize">21sp</item>
  32. </style>
  33. <style name="TextAppearance.GestureTutorial.Feedback.Title"
  34. parent="TextAppearance.GestureTutorial">
  35. <item name="android:gravity">start</item>
  36. <item name="android:textColor">?android:attr/textColorPrimary</item>
  37. <item name="android:fontFamily">google-sans</item>
  38. <item name="android:letterSpacing">0.03</item>
  39. <item name="android:textSize">36sp</item>
  40. <item name="android:lineHeight">44sp</item>
  41. </style>
  42. <style name="TextAppearance.GestureTutorial.MenuButton"
  43. parent="TextAppearance.GestureTutorial.Feedback.Title">
  44. <item name="android:gravity">center</item>
  45. <item name="fontWeight">400</item>
  46. </style>
  47. <style name="TextAppearance.GestureTutorial.MenuButton.Home"
  48. parent="TextAppearance.GestureTutorial.MenuButton">
  49. <item name="android:textColor">?attr/secondaryHome</item>
  50. </style>
  51. <style name="TextAppearance.GestureTutorial.MenuButton.Back"
  52. parent="TextAppearance.GestureTutorial.MenuButton">
  53. <item name="android:textColor">?attr/secondaryBack</item>
  54. </style>
  55. <style name="TextAppearance.GestureTutorial.MenuButton.Overview"
  56. parent="TextAppearance.GestureTutorial.MenuButton">
  57. <item name="android:textColor">?attr/secondaryOverview</item>
  58. </style>
  59. <style name="TextAppearance.GestureTutorial.Feedback.Title.AllSet"
  60. parent="TextAppearance.GestureTutorial.Feedback.Title">
  61. <item name="android:letterSpacing">0.03</item>
  62. <item name="android:lineHeight">44sp</item>
  63. <item name="android:textSize">@dimen/allset_page_allset_text_size</item>
  64. </style>
  65. <style name="TextAppearance.GestureTutorial.Dialog.Title"
  66. parent="TextAppearance.GestureTutorial.Feedback.Title">
  67. <item name="android:gravity">center_horizontal</item>
  68. <item name="android:fontFamily">google-sans</item>
  69. <item name="android:lineHeight">32sp</item>
  70. <item name="android:textSize">24sp</item>
  71. </style>
  72. <style name="TextAppearance.GestureTutorial.Feedback.Subtitle"
  73. parent="TextAppearance.GestureTutorial">
  74. <item name="android:gravity">start</item>
  75. <item name="android:textColor">?android:attr/textColorPrimary</item>
  76. <item name="android:fontFamily">google-sans-text</item>
  77. <item name="android:letterSpacing">0.03</item>
  78. <item name="android:textSize">14sp</item>
  79. <item name="android:lineHeight">20sp</item>
  80. </style>
  81. <style name="TextAppearance.GestureTutorial.Feedback.Subtitle.AllSet"
  82. parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
  83. <item name="android:textSize">18sp</item>
  84. <item name="android:lineHeight">24sp</item>
  85. </style>
  86. <style name="TextAppearance.GestureTutorial.Dialog.Subtitle"
  87. parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
  88. <item name="android:gravity">center_horizontal</item>
  89. <item name="android:fontFamily">google-sans-text</item>
  90. <item name="android:letterSpacing">0.025</item>
  91. <item name="android:lineHeight">20sp</item>
  92. <item name="android:textSize">14sp</item>
  93. </style>
  94. <style name="TextAppearance.GestureTutorial.Feedback.Subtext"
  95. parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
  96. <item name="android:textSize">16sp</item>
  97. <item name="android:textColor">?android:attr/colorAccent</item>
  98. <item name="android:gravity">start</item>
  99. </style>
  100. <style name="TextAppearance.GestureTutorial.Feedback.Subtext.Dark"
  101. parent="TextAppearance.GestureTutorial.Feedback.Subtext">
  102. <item name="android:textColor">?android:attr/textColorPrimary</item>
  103. </style>
  104. <style name="TextAppearance.GestureTutorial.ButtonLabel"
  105. parent="TextAppearance.GestureTutorial.CallToAction">
  106. <item name="android:gravity">center</item>
  107. <item name="android:textColor">?attr/materialColorOnPrimary</item>
  108. <item name="android:letterSpacing">0.02</item>
  109. <item name="android:textSize">16sp</item>
  110. <item name="android:textAllCaps">false</item>
  111. <item name="android:fontFamily">google-sans-text-medium</item>
  112. </style>
  113. <style name="TextAppearance.GestureTutorial.ButtonLabel.Home"
  114. parent="TextAppearance.GestureTutorial.ButtonLabel">
  115. <item name="android:textColor">?attr/onSurfaceHome</item>
  116. </style>
  117. <style name="TextAppearance.GestureTutorial.ButtonLabel.Back"
  118. parent="TextAppearance.GestureTutorial.ButtonLabel">
  119. <item name="android:textColor">?attr/onSurfaceBack</item>
  120. </style>
  121. <style name="TextAppearance.GestureTutorial.ButtonLabel.Overview"
  122. parent="TextAppearance.GestureTutorial.ButtonLabel">
  123. <item name="android:textColor">?attr/onSurfaceOverview</item>
  124. </style>
  125. <style name="TextAppearance.GestureTutorial.CancelButtonLabel"
  126. parent="TextAppearance.GestureTutorial.ButtonLabel">
  127. <item name="android:textColor">?android:attr/colorAccent</item>
  128. </style>
  129. <style name="TextAppearance.GestureTutorial.TextButtonLabel"
  130. parent="TextAppearance.GestureTutorial.ButtonLabel">
  131. <item name="android:textColor">?android:attr/colorAccent</item>
  132. </style>
  133. <style name="TextAppearance.GestureTutorial.LinkText"
  134. parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
  135. <item name="android:textSize">14sp</item>
  136. </style>
  137. <style name="TextAppearance.GestureTutorial.MainTitle"
  138. parent="TextAppearance.GestureTutorial">
  139. <item name="android:textSize">36sp</item>
  140. <item name="android:fontFamily">google-sans</item>
  141. </style>
  142. <style name="TextAppearance.GestureTutorial.MainTitle.Home"
  143. parent="TextAppearance.GestureTutorial.MainTitle">
  144. <item name="android:textColor">?attr/onSurfaceHome</item>
  145. </style>
  146. <style name="TextAppearance.GestureTutorial.MainTitle.Back"
  147. parent="TextAppearance.GestureTutorial.MainTitle">
  148. <item name="android:textColor">?attr/onSurfaceBack</item>
  149. </style>
  150. <style name="TextAppearance.GestureTutorial.MainTitle.Overview"
  151. parent="TextAppearance.GestureTutorial.MainTitle">
  152. <item name="android:textColor">?attr/onSurfaceOverview</item>
  153. </style>
  154. <style name="TextAppearance.GestureTutorial.MainTitle.Success.Home"
  155. parent="TextAppearance.GestureTutorial.MainTitle.Home">
  156. <item name="android:textColor">?attr/secondaryHome</item>
  157. </style>
  158. <style name="TextAppearance.GestureTutorial.MainTitle.Success.Back"
  159. parent="TextAppearance.GestureTutorial.MainTitle.Back">
  160. <item name="android:textColor">?attr/secondaryBack</item>
  161. </style>
  162. <style name="TextAppearance.GestureTutorial.MainTitle.Success.Overview"
  163. parent="TextAppearance.GestureTutorial.MainTitle.Overview">
  164. <item name="android:textColor">?attr/secondaryOverview</item>
  165. </style>
  166. <style name="TextAppearance.GestureTutorial.MainSubtitle"
  167. parent="TextAppearance.GestureTutorial.Subtitle">
  168. <item name="android:textSize">16sp</item>
  169. <item name="android:letterSpacing">0.02</item>
  170. <item name="android:fontFamily">google-sans-text</item>
  171. <item name="android:textColor">?attr/tutorialSubtitle</item>
  172. </style>
  173. <style name="AllSetTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
  174. <item name="android:navigationBarColor">@android:color/transparent</item>
  175. <item name="android:statusBarColor">@android:color/transparent</item>
  176. <item name="android:enforceNavigationBarContrast">false</item>
  177. <item name="android:windowLightStatusBar">true</item>
  178. <item name="android:windowBackground">@android:color/transparent</item>
  179. </style>
  180. <!--
  181. Can be applied to views to color things like ripples and list highlights the workspace text
  182. color.
  183. -->
  184. <style name="ThemeControlHighlightWorkspaceColor">
  185. <item name="android:colorControlHighlight">?attr/workspaceTextColor</item>
  186. </style>
  187. <style name="OverviewActionButton"
  188. parent="@android:style/Widget.DeviceDefault.Button.Borderless">
  189. <item name="android:paddingTop">4dp</item>
  190. <item name="android:paddingBottom">4dp</item>
  191. <item name="android:textColor">@color/overview_button</item>
  192. <item name="android:drawableTint">@color/overview_button</item>
  193. <item name="android:tint">?android:attr/textColorPrimary</item>
  194. <item name="android:drawablePadding">8dp</item>
  195. <item name="android:textAllCaps">false</item>
  196. </style>
  197. <style name="OverviewClearAllButton" parent="@android:style/Widget.DeviceDefault.Button">
  198. <item name="android:background">@drawable/bg_overview_clear_all_button</item>
  199. <item name="android:minWidth">96dp</item>
  200. <item name="android:minHeight">48dp</item>
  201. <item name="android:paddingStart">12dp</item>
  202. <item name="android:paddingEnd">12dp</item>
  203. <item name="android:stateListAnimator">@null</item>
  204. </style>
  205. <!-- Icon displayed on the taskbar -->
  206. <style name="BaseIcon.Workspace.Taskbar" >
  207. <item name="iconDisplay">taskbar</item>
  208. </style>
  209. <style name="TaskbarEdu.Button.Done" parent="@android:style/Widget.Material.Button">
  210. <item name="android:background">@drawable/button_taskbar_edu_colored</item>
  211. <item name="android:stateListAnimator">@null</item>
  212. <item name="android:textSize">16sp</item>
  213. <item name="android:minHeight">36dp</item>
  214. </style>
  215. <style name="TextAppearance.TaskbarEduTooltip.Title" parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
  216. <item name="android:gravity">center_horizontal</item>
  217. <item name="android:fontFamily">google-sans</item>
  218. <item name="android:textSize">24sp</item>
  219. </style>
  220. <style name="TextAppearance.TaskbarEduTooltip.Subtext" parent="android:TextAppearance.Material.Body1">
  221. <item name="android:layout_marginTop">16dp</item>
  222. <item name="android:fontFamily">google-sans-text</item>
  223. <item name="android:textSize">14sp</item>
  224. </style>
  225. <style name="KeyboardQuickSwitchText">
  226. <item name="fontFamily">google-sans-text</item>
  227. <item name="android:textSize">14sp</item>
  228. <item name="android:textColor">?attr/materialColorOnSurface</item>
  229. <item name="lineHeight">20sp</item>
  230. </style>
  231. <style name="KeyboardQuickSwitchText.OnBackground" parent="KeyboardQuickSwitchText">
  232. <item name="android:textColor">?attr/materialColorOnSurfaceInverse</item>
  233. </style>
  234. <style name="GestureTutorialActivity" parent="@style/AppTheme">
  235. <item name="background">@android:color/transparent</item>
  236. <item name="tutorialSubtitle">@android:color/black</item>
  237. <item name="surfaceContainer">?attr/materialColorSurfaceContainer</item>
  238. <item name="onSurfaceHome">?attr/materialColorPrimaryFixed</item>
  239. <item name="surfaceHome">@android:color/system_accent1_300</item>
  240. <item name="secondaryHome">?attr/materialColorOnPrimaryFixedVariant</item>
  241. <item name="onSurfaceBack">?attr/materialColorTertiaryFixed</item>
  242. <item name="surfaceBack">@android:color/system_accent3_300</item>
  243. <item name="secondaryBack">?attr/materialColorOnTertiaryFixedVariant</item>
  244. <item name="onSurfaceOverview">?attr/materialColorPrimaryFixed</item>
  245. <item name="surfaceOverview">@android:color/system_accent2_300</item>
  246. <item name="secondaryOverview">?attr/materialColorOnSecondaryFixedVariant</item>
  247. </style>
  248. <style name="rotate_prompt_title" parent="TextAppearance.GestureTutorial.Dialog.Title">
  249. <item name="android:textColor">?attr/materialColorOnSurface</item>
  250. </style>
  251. <style name="rotate_prompt_subtitle" parent="TextAppearance.GestureTutorial.Dialog.Subtitle">
  252. <item name="android:textColor">?attr/materialColorOnSurfaceVariant</item>
  253. </style>
  254. </resources>