forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathstyles.xml
317 lines (284 loc) · 15.9 KB
/
styles.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="DropdownPopupWindow" parent="@android:style/Widget.ListPopupWindow">
<item name="android:popupBackground">@drawable/dialog_bg_baseline</item>
</style>
<!-- Buttons -->
<style name="FilledButtonThemeOverlay">
<item name="android:buttonStyle">@style/FilledButton</item>
</style>
<style name="FilledButtonThemeOverlay.Flat" tools:ignore="UnusedResources">
<item name="android:buttonStyle">@style/FilledButton.Flat</item>
</style>
<style name="TextButtonThemeOverlay" tools:ignore="UnusedResources">
<item name="android:buttonStyle">@style/TextButton</item>
</style>
<style name="ButtonCompatBase">
<item name="android:minWidth">@dimen/button_min_width</item>
<item name="android:minHeight">@dimen/min_touch_target_size</item>
<item name="android:paddingStart">20dp</item>
<item name="android:paddingEnd">20dp</item>
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
<item name="android:gravity">center_vertical|center_horizontal</item>
<item name="verticalInset">@dimen/button_bg_vertical_inset</item>
</style>
<style name="FilledButton" parent="ButtonCompatBase" tools:ignore="UnusedResources">
<item name="android:paddingStart">24dp</item>
<item name="android:paddingEnd">24dp</item>
<item name="android:textAppearance">@style/TextAppearance.Button.Text.Filled</item>
<item name="buttonTextColor">?attr/globalFilledButtonTextColor</item>
<item name="buttonColor">?attr/globalFilledButtonBgColor</item>
<item name="rippleColor">@color/filled_button_ripple_color</item>
<item name="buttonRaised">true</item>
</style>
<style name="FilledButton.Flat" tools:ignore="UnusedResources">
<item name="buttonRaised">false</item>
</style>
<style name="TextButton" parent="ButtonCompatBase" tools:ignore="UnusedResources">
<item name="android:paddingStart">8dp</item>
<item name="android:paddingEnd">8dp</item>
<item name="android:textAppearance">@style/TextAppearance.Button.Text.Blue</item>
<item name="buttonTextColor">?attr/globalTextButtonTextColor</item>
<item name="buttonColor">@android:color/transparent</item>
<item name="rippleColor">@color/text_button_ripple_color</item>
<item name="buttonRaised">false</item>
</style>
<style name="OutlinedButton" parent="TextButton" tools:ignore="UnusedResources">
<item name="borderWidth">@dimen/button_outlined_border_width</item>
<item name="borderColor">?attr/globalOutlinedButtonBorderColor</item>
</style>
<!-- Used by Chrome and Content -->
<style name="TextAppearance" parent="android:TextAppearance" tools:ignore="UnusedResources" />
<style name="TextAppearance.RobotoMediumStyle">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textStyle">bold</item>
</style>
<!-- This style is overridden downstream to set accent_font_medium as the font family. -->
<style name="TextAppearance.AccentMediumStyle" parent="TextAppearance.RobotoMediumStyle" />
<!-- Base Text Styles -->
<!--
Define incomplete base text styles. The styles in this section are used
to create other text styles below and should not be used directly to style
text as they are missing textColor attributes
-->
<style name="TextAppearance.Headline">
<item name="android:fontFamily">@font/accent_font</item>
<item name="android:textSize">@dimen/headline_size</item>
</style>
<style name="TextAppearance.HeadlineThick" parent="TextAppearance.AccentMediumStyle">
<item name="android:textSize">@dimen/headline_size</item>
</style>
<style name="TextAppearance.TextLarge">
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.TextMediumThick" parent="TextAppearance.RobotoMediumStyle">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextAccentMediumThick" parent="TextAppearance.AccentMediumStyle">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextMedium">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextSmall">
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Non Adaptive Text Styles -->
<!-- Light version -->
<style name="TextAppearance.Headline.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.HeadlineThick.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMediumThick.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMediumThick.Secondary.Baseline.Light"
parent="TextAppearance.TextMediumThick" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Secondary.Baseline.Light"
parent="TextAppearance.TextLarge" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
</style>
<style name="TextAppearance.TextMedium.Secondary.Baseline.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Disabled.Baseline.Light" parent="TextAppearance.TextLarge"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_light</item>
</style>
<style name="TextAppearance.TextSmall.Disabled.Baseline.Light" parent="TextAppearance.TextSmall"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_light</item>
</style>
<style name="TextAppearance.WhiteLink" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_medium</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.TextSmallThick.Secondary.Baseline.Light"
parent="TextAppearance.TextSmall">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
<item name="android:textStyle">bold</item>
</style>
<!-- Dark version -->
<style name="TextAppearance.Headline.Primary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextLarge.Primary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextLarge.Secondary.Baseline.Dark"
parent="TextAppearance.TextLarge" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextMedium.Secondary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextSmall.Secondary.Baseline.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextMediumThick.Secondary.Baseline.Dark"
parent="TextAppearance.TextMediumThick" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextLarge.Disabled.Baseline.Dark" parent="TextAppearance.TextLarge"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<style name="TextAppearance.TextMedium.Disabled.Baseline.Dark" parent="TextAppearance.TextMedium"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<style name="TextAppearance.TextSmall.Disabled.Baseline.Dark" parent="TextAppearance.TextSmall"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<!-- Blue And Button Text Styles -->
<style name="TextAppearance.TextMediumThick.Green">
<item name="android:textColor">@color/default_green</item>
</style>
<style name="TextAppearance.TextMediumThick.Green.Dark">
<item name="android:textColor">@color/default_green_dark</item>
</style>
<style name="TextAppearance.Button.Text.Blue" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.Button.Text.Blue.Dark" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled_dark</item>
</style>
<style name="TextAppearance.Button.Text.Filled" parent="TextAppearance.TextAccentMediumThick">
<item name="android:textColor">@color/default_text_color_on_accent1_baseline_list</item>
</style>
<style name="TextAppearance.Button.Text.Inverse" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_on_accent1_baseline_list</item>
</style>
<style name="TextAppearance.MenuChip.Text.Blue" parent="TextAppearance.Button.Text.Blue">
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Blue Non Adaptive Text Styles -->
<style name="TextAppearance.TextMedium.Blue.Baseline.Light" parent="TextAppearance.TextMedium">
<item name="android:textColor">@color/default_icon_color_blue_light</item>
</style>
<style name="TextAppearance.TextMediumThick.Blue.Baseline.Light"
parent="TextAppearance.TextMediumThick" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_light</item>
</style>
<style name="TextAppearance.TextLarge.Blue.Baseline.Dark" parent="TextAppearance.TextLarge"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextMedium.Blue.Baseline.Dark" parent="TextAppearance.TextMedium"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextSmall.Blue.Baseline.Dark" parent="TextAppearance.TextSmall"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextMediumThick.Blue.Baseline.Dark"
parent="TextAppearance.TextMediumThick" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<!-- Baseline or non-dynamic text styles -->
<!-- Primary text styles -->
<style name="TextAppearance.Headline.Primary.Baseline" parent="TextAppearance.Headline">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<style name="TextAppearance.HeadlineThick.Primary.Baseline" parent="TextAppearance.HeadlineThick">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<style name="TextAppearance.TextLarge.Primary.Baseline" parent="TextAppearance.TextLarge">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<style name="TextAppearance.TextMediumThick.Primary.Baseline" parent="TextAppearance.TextMediumThick">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Baseline" parent="TextAppearance.TextMedium">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Baseline" parent="TextAppearance.TextSmall">
<item name="android:textColor">@color/default_text_color_list_baseline</item>
</style>
<!-- Secondary text styles -->
<style name="TextAppearance.TextMedium.Secondary.Baseline" parent="TextAppearance.TextMedium">
<item name="android:textColor">@color/default_text_color_secondary_list_baseline</item>
</style>
<style name="TextAppearance.TextSmall.Secondary.Baseline" parent="TextAppearance.TextSmall">
<item name="android:textColor">@color/default_text_color_secondary_list_baseline</item>
</style>
<!-- Error Text Styles -->
<style name="TextAppearance.ErrorCaption" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_error</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Toast UI -->
<style name="TextAppearance.Toast" parent="TextAppearance.TextSmall">
<item name="android:textColor">@color/default_text_color_light</item>
</style>
<!-- Dividers -->
<style name="HorizontalDivider"
tools:ignore="UnusedResources">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">@dimen/divider_height</item>
<item name="android:background">?android:attr/listDivider</item>
<item name="android:importantForAccessibility">no</item>
</style>
<style name="VerticalDivider"
tools:ignore="UnusedResources">
<item name="android:layout_width">@dimen/divider_height</item>
<item name="android:layout_height">match_parent</item>
<item name="android:background">?android:attr/listDivider</item>
<item name="android:importantForAccessibility">no</item>
</style>
<style name="ThemeOverlay.UI.SelectionHandle" parent="">
<item name="colorControlActivated">@color/default_control_color_active_baseline</item>
</style>
</resources>