forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.xml
275 lines (258 loc) · 14.6 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
<?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/popup_bg_tinted</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.WhiteButtonText</item>
<item name="buttonColor">@color/filled_button_bg</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.BlueButtonText2</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="TextButton.Inverse" tools:ignore="UnusedResources">
<item name="android:textAppearance">@style/TextAppearance.ButtonText.Inverse</item>
<item name="rippleColor">@color/filled_button_ripple_color</item>
</style>
<!-- Chips -->
<style name="SuggestionChipThemeOverlay" tools:ignore="UnusedResources">
<item name="chipStyle">@style/SuggestionChip</item>
</style>
<style name="Chip">
<item name="android:minHeight">@dimen/min_touch_target_size</item>
<item name="android:gravity">center_vertical</item>
<item name="android:orientation">horizontal</item>
<item name="chipColor">@color/chip_background_color</item>
<item name="primaryTextAppearance">@style/TextAppearance.ChipText</item>
<item name="secondaryTextAppearance">@style/TextAppearance.ChipHint</item>
<item name="rippleColor">@color/chip_ripple_color</item>
<item name="verticalInset">@dimen/chip_bg_vertical_inset</item>
</style>
<style name="SuggestionChip" parent="Chip" tools:ignore="UnusedResources">
<item name="primaryTextAppearance">@style/TextAppearance.ChipHint</item>
<item name="cornerRadius">@dimen/chip_corner_radius</item>
</style>
<style name="InputChip" parent="Chip" tools:ignore="UnusedResources">
<item name="cornerRadius">@dimen/chip_default_height</item>
</style>
<style name="AssistiveChip" parent="Chip" tools:ignore="UnusedResources">
<item name="cornerRadius">@dimen/chip_default_height</item>
</style>
<style name="ChipTextView" tools:ignore="UnusedResources">
<item name="android:gravity">center</item>
<item name="android:maxLines">1</item>
<item name="android:paddingStart">@dimen/chip_element_leading_padding</item>
<item name="android:textAlignment">center</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" />
<!-- Black Text Styles -->
<!-- TODO(huayinz): remove tools:ignore once these text styles are all used in ui/android -->
<style name="TextAppearance.BlackHeadline" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/headline_size</item>
<item name="android:fontFamily">@font/accent_font</item>
</style>
<style name="TextAppearance.BlackTitle1" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.BlackTitle2" parent="TextAppearance.RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackHint1" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.BlackHint2" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackDisabledText1" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_tertiary</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.BlackDisabledText2" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_tertiary</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<style name="TextAppearance.BlackDisabledText3" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_tertiary</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackBodyDefault" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackBody" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackCaptionDefault" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_list</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<style name="TextAppearance.BlackCaption" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<style name="TextAppearance.BlackButtonText" parent="TextAppearance.AccentMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlackLink" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.BlackToolbarTitle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_large</item>
<item name="android:textStyle">bold</item>
</style>
<!-- White Text Styles -->
<style name="TextAppearance.WhiteHeadline" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/headline_size</item>
<item name="android:fontFamily">@font/accent_font</item>
</style>
<style name="TextAppearance.WhiteBodyIncognito" tools:ignore="UnusedResources">
<item name="android:textColor">@color/white_alpha_70</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.WhiteBody" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.WhiteTitle1" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.WhiteTitle2" parent="TextAppearance.RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.WhiteButtonText" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/default_text_color_inverse</item>
<item name="android:textSize">@dimen/text_size_medium</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>
<!-- Text styles used on dark background on light theme, and light background on dark theme. -->
<style name="TextAppearance.Headline.Inverse" parent="TextAppearance.WhiteHeadline" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.Body.Inverse" parent="TextAppearance.WhiteBody" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.Title2.Inverse" parent="TextAppearance.WhiteTitle2"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.ButtonText.Inverse" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/default_text_color_inverse_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<!-- Blue Text Styles -->
<style name="TextAppearance.BlueTitle2" parent="TextAppearance.RobotoMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlueButtonText1" parent="TextAppearance.AccentMediumStyle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/modern_blue_300</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlueButtonText2" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/blue_when_enabled</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlueLink1" tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.BlueLink2" tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.BlueLink3" tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Error Text Styles -->
<style name="TextAppearance.ErrorCaption" tools:ignore="UnusedResources">
<item name="android:textColor">@color/error_text_color</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Chip Text Styles -->
<style name="TextAppearance.ChipText" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/chip_text_color</item>
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.ChipHint" parent="TextAppearance.AccentMediumStyle">
<item name="android:textColor">@color/chip_text_color_secondary</item>
<item name="android:textSize">@dimen/text_size_medium</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>
</resources>