styles.xml 16.1 KB
Newer Older
1
<!--
2
3
4
5
6
7
8
  ~ Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
  ~
  ~ This Source Code Form is subject to the terms of the Mozilla Public
  ~ License, v. 2.0. If a copy of the MPL was not distributed with this
  ~ file, You can obtain one at https://mozilla.org/MPL/2.0/.
  ~
  ~ SPDX-License-Identifier: MPL-2.0
9
  -->
10
<resources xmlns:tools="http://schemas.android.com/tools">
lauris's avatar
lauris committed
11
12
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <!-- Customize your theme here. -->
13
14
15
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primaryDark</item>
        <item name="colorAccent">@color/accent</item>
lauris's avatar
lauris committed
16
        <!--Workaround for Material lib's inflater which replaces all buttons (dialogs, menus, etc)-->
17
        <item name="viewInflaterClass">org.dpppt.android.app.common.ui.CustomMaterialComponentViewInflater</item>
18
        <item name="android:windowBackground">@color/white</item>
Aleks's avatar
Aleks committed
19
        <item name="android:statusBarColor">@color/primary</item>
20
21
22
23
        <!-- Material Dialogs -->
        <item name="md_font_title">@font/aino_bold</item>
        <item name="md_font_body">@font/aino_regular</item>
        <item name="md_font_button">@font/aino_bold</item>
lauris's avatar
lauris committed
24
25
    </style>

26
    <style name="AppTheme.Splash">
lauris's avatar
lauris committed
27
        <item name="android:windowBackground">@drawable/bg_splash</item>
lauris's avatar
lauris committed
28
29
    </style>

30
31
32
33
    <style name="AppTheme.ErrorDialog">
        <item name="android:windowIsFloating">false</item>
    </style>

Aleks's avatar
Aleks committed
34
    <!-- TODO remove fontfamily and put in apptheme -->
35
    <style name="AppTheme.Headline">
36
37
        <item name="android:fontFamily">@font/aino_headline</item>
        <item name="android:textColor">@color/black</item>
38
        <item name="android:textSize">@dimen/text_size_36</item>
39
        <item name="android:gravity">center</item>
40
41
    </style>

42
    <style name="AppTheme.Headline.28" parent="AppTheme.Headline">
43
44
45
        <item name="android:textSize">@dimen/text_size_28</item>
    </style>

46
47
    <style name="AppTheme.Headline.32" parent="AppTheme.Headline">
        <item name="android:textSize">@dimen/text_size_32</item>
48
49
    </style>

50
51
52
53
54
55
56
    <style name="AppTheme.BoldSubtitle">
        <item name="android:fontFamily">@font/aino_bold</item>
        <item name="android:textColor">@color/black</item>
        <item name="android:lineSpacingExtra">6sp</item>
        <item name="android:textSize">@dimen/text_size_18</item>
    </style>

Aleks's avatar
Aleks committed
57
58
59
60
    <style name="AppTheme.Subtitle">
        <item name="android:fontFamily">@font/aino_headline</item>
        <item name="android:textColor">@color/black</item>
        <item name="android:lineSpacingExtra">6sp</item>
61
        <item name="android:textSize">@dimen/text_size_28</item>
Aleks's avatar
Aleks committed
62
63
    </style>

64
65
66
67
    <style name="AppTheme.Subtitle.White">
        <item name="android:textColor">@color/white</item>
    </style>

68
    <style name="AppTheme.Paragraph">
69
        <item name="android:fontFamily">@font/aino_regular</item>
70
        <item name="android:textColor">@color/gray</item>
71
        <item name="android:lineSpacingExtra">6sp</item>
72
        <item name="android:textSize">@dimen/text_size_16</item>
73
74
    </style>

Aleks's avatar
Aleks committed
75
76
77
78
79
80
    <style name="AppTheme.Settings">
        <item name="android:fontFamily">@font/aino_regular</item>
    </style>

    <style name="AppTheme.Settings.Label" parent="AppTheme.Settings">
        <item name="android:lineSpacingExtra">6sp</item>
81
        <item name="android:lineHeight" tools:targetApi="p">24sp</item>
Aleks's avatar
Aleks committed
82
        <item name="android:textSize">@dimen/text_size_16</item>
Harri Kirik's avatar
Harri Kirik committed
83
84
        <item name="android:paddingTop">@dimen/settings_label_padding</item>
        <item name="android:paddingBottom">@dimen/settings_label_padding</item>
Aleks's avatar
Aleks committed
85
86
    </style>

Harri Kirik's avatar
Harri Kirik committed
87
    <style name="AppTheme.Settings.Label.Blue">
88
89
90
        <item name="android:textColor">@color/primary</item>
    </style>

Harri Kirik's avatar
Harri Kirik committed
91
    <style name="AppTheme.Settings.Label.Pink">
92
93
94
        <item name="android:textColor">@color/pink</item>
    </style>

Harri Kirik's avatar
Harri Kirik committed
95
    <style name="AppTheme.Settings.Description">
Aleks's avatar
Aleks committed
96
        <item name="android:lineSpacingExtra">5sp</item>
Harri Kirik's avatar
Harri Kirik committed
97
        <item name="android:lineHeight" tools:targetApi="p">19sp</item>
Aleks's avatar
Aleks committed
98
99
100
101
        <item name="android:textColor">@color/gray</item>
        <item name="android:textSize">@dimen/text_size_13</item>
    </style>

Harri Kirik's avatar
Harri Kirik committed
102
    <style name="AppTheme.Settings.Version">
103
104
        <item name="android:lineSpacingExtra">5sp</item>
        <item name="android:lineHeight" tools:targetApi="p">19sp</item>
105
        <item name="android:textColor">@color/color_gray2_clickable</item>
Harri Kirik's avatar
Harri Kirik committed
106
        <item name="android:textSize">@dimen/text_size_13</item>
107
108
    </style>

109
110
111
112
    <style name="AppTheme.Paragraph.L18">
        <item name="android:textSize">@dimen/text_size_18</item>
    </style>

113
114
115
116
117
118
119
120
    <style name="AppTheme.Paragraph.Black" parent="AppTheme.Paragraph">
        <item name="android:textColor">@color/black</item>
    </style>

    <style name="AppTheme.Paragraph.Black.Bold" parent="AppTheme.Paragraph.Black">
        <item name="android:fontFamily">@font/aino_bold</item>
    </style>

121
    <style name="AppTheme.LinkButtonText">
122
        <item name="android:fontFamily">@font/aino_bold</item>
123
124
125
126
127
128
        <item name="android:textColor">@color/selector_link_text</item>
        <item name="android:textSize">@dimen/text_size_16</item>
        <item name="android:paddingBottom">@dimen/size_8</item>
        <item name="android:paddingTop">@dimen/size_8</item>
        <item name="android:focusable">true</item>
        <item name="android:clickable">true</item>
129
130
    </style>

lita_kornilova's avatar
lita_kornilova committed
131
    <style name="AppTheme.AppNameText">
lita_kornilova's avatar
lita_kornilova committed
132
        <item name="android:fontFamily">@font/aino_bold</item>
lita_kornilova's avatar
lita_kornilova committed
133
134
135
136
137
138
        <item name="android:textColor">@color/white</item>
        <item name="android:textSize">@dimen/text_size_14</item>
        <item name="android:letterSpacing">0.04</item>
        <item name="textAllCaps">true</item>
    </style>

lita_kornilova's avatar
lita_kornilova committed
139
140
    <style name="AppTheme.TextButton" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="android:letterSpacing">0.04</item>
lita_kornilova's avatar
lita_kornilova committed
141
        <item name="fontFamily">@font/aino_bold</item>
142
        <item name="textAllCaps">false</item>
143
        <item name="shapeAppearance">@style/ShapeAppearance.Button</item>
144
145
146
147
148
149
150
151
152
153
        <item name="iconPadding">@dimen/size_8</item>
    </style>

    <style name="AppTheme.TextButton.White">
        <item name="backgroundTint">@color/white</item>
        <item name="rippleColor">@color/gray3</item>
        <item name="android:textColor">@color/gray</item>
        <item name="textAllCaps">true</item>
        <item name="android:paddingStart">@dimen/size_16</item>
        <item name="android:paddingEnd">@dimen/size_16</item>
lita_kornilova's avatar
lita_kornilova committed
154
155
    </style>

156
157
    <style name="AppTheme.TextButton.Settings" parent="AppTheme.TextButton">
        <item name="android:textColor">@color/white</item>
158
        <item name="rippleColor">@color/primaryDark</item>
159
160
161
        <item name="icon">@drawable/ic_arrow_forward</item>
        <item name="iconTint">@color/white</item>
        <item name="iconGravity">textEnd</item>
lita_kornilova's avatar
lita_kornilova committed
162
163
    </style>

164
165
    <style name="AppTheme.TextButton.Language.Dismiss" parent="AppTheme.TextButton">
        <item name="android:textColor">@color/secondarySkyBlue</item>
166
        <item name="rippleColor">@color/gray3</item>
167
168
169
        <item name="android:textSize">@dimen/text_size_14</item>
    </style>

170
    <style name="AppTheme.TextButton.Back" parent="AppTheme.TextButton">
171
172
173
        <item name="android:layout_gravity">start</item>
        <item name="android:contentDescription">@string/nav_back_content_description</item>
        <item name="android:text">@string/nav_back</item>
174
175
176
177
178
179
180
        <item name="icon">@drawable/ic_arrow_back</item>
        <item name="iconGravity">textStart</item>
    </style>

    <style name="AppTheme.TextButton.Back.Primary" parent="AppTheme.TextButton.Back">
        <item name="android:textColor">@color/primary</item>
        <item name="iconTint">@color/primary</item>
Michelle Mueller's avatar
Michelle Mueller committed
181
        <item name="rippleColor">@color/gray3</item>
182
183
184
185
186
    </style>

    <style name="AppTheme.TextButton.Back.White" parent="AppTheme.TextButton.Back">
        <item name="android:textColor">@color/white</item>
        <item name="iconTint">@color/white</item>
187
        <item name="rippleColor">@color/primaryDark</item>
188
    </style>
189
190
191
192
193
194
195
196
197
198
199
    
    <style name="AppTheme.TextButton.Language" parent="Widget.AppCompat.CompoundButton.RadioButton">
        <item name="textAllCaps">true</item>
        <item name="android:letterSpacing">0.04</item>
        <item name="fontFamily">@font/aino_bold</item>
        <item name="android:textColor">@color/selector_language_text</item>
        <item name="android:button">@null</item>
        <item name="android:paddingEnd">16dp</item>
        <item name="android:paddingStart">16dp</item>
        <item name="android:background">?attr/selectableItemBackgroundBorderless</item>
    </style>
200

201
202
203
204
205
206
207
208
    <style name="AppTheme.TextButton.Language.Settings" parent="Widget.AppCompat.CompoundButton.RadioButton">
        <item name="android:lineSpacingExtra">6sp</item>
        <item name="android:lineHeight" tools:targetApi="p">24sp</item>
        <item name="android:textSize">@dimen/text_size_16</item>
        <item name="android:paddingTop">@dimen/settings_label_padding</item>
        <item name="android:paddingBottom">@dimen/settings_label_padding</item>
        <item name="fontFamily">@font/aino_regular</item>
        <item name="android:textColor">@color/primary</item>
209
        <item name="android:button">@drawable/checkmark_radio_button</item>
210
211
212
213
214
        <item name="android:paddingEnd">16dp</item>
        <item name="android:paddingStart">16dp</item>
        <item name="android:background">?attr/selectableItemBackgroundBorderless</item>
    </style>

215
216
217
218
219
220
221
222
    <style name="AppTheme.TextButton.Close" parent="AppTheme.TextButton">
        <item name="icon">@drawable/ic_close</item>
        <item name="iconTint">@color/lightYellow</item>
        <item name="android:textColor">@color/lightYellow</item>
        <item name="iconGravity">textEnd</item>
        <item name="rippleColor">@color/gray3</item>
    </style>

lita_kornilova's avatar
lita_kornilova committed
223
    <style name="AppTheme.Button.Icon" parent="AppTheme.Button">
Aleks's avatar
Aleks committed
224
225
226
        <item name="iconGravity">textStart</item>
    </style>

lita_kornilova's avatar
lita_kornilova committed
227
    <style name="AppTheme.CardView.RequiresAttention">
228
        <item name="chevronIcon">@drawable/ic_arrow_forward_large</item>
229
230
        <item name="headerColor">@color/pink</item>
        <item name="titleTextColor">@color/white</item>
231
        <item name="descriptionBackgroundColor">@color/lightPink</item>
232
233
    </style>

234
    <style name="AppTheme.Switch">
Aleks's avatar
Aleks committed
235
        <item name="thumbTint">@color/white</item>
236
237
        <item name="trackTint">@color/switch_tint_selector</item>
        <item name="useMaterialThemeColors">false</item>
Aleks's avatar
Aleks committed
238
239
    </style>

240
    <style name="AppTheme.ScrollView" parent="">
241
        <item name="android:overScrollMode">never</item>
242
243
    </style>

lita_kornilova's avatar
lita_kornilova committed
244
245
246
247
248
    <style name="AppTheme.ConstraintLayout">
        <item name="android:maxWidth">@dimen/max_content_width</item>
        <item name="android:layout_gravity">center_horizontal</item>
    </style>

249
    <style name="AppTheme.CardView" parent="Widget.MaterialComponents.CardView">
250
251
        <item name="cardElevation">@dimen/size_2</item>
        <item name="cardMaxElevation">@dimen/size_2</item>
252
253
254
255
        <item name="cardBackgroundColor">@color/white</item>
        <item name="cardCornerRadius">0dp</item>
    </style>

256
    <style name="AppTheme.Button" parent="Widget.MaterialComponents.Button">
lita_kornilova's avatar
lita_kornilova committed
257
        <item name="fontFamily">@font/aino_bold</item>
258
        <item name="shapeAppearance">@style/ShapeAppearance.Button</item>
259
        <item name="android:letterSpacing">0.04</item>
lita_kornilova's avatar
lita_kornilova committed
260
        <item name="android:minHeight">@dimen/size_48</item>
261
262
        <item name="android:insetBottom">0dp</item>
        <item name="android:insetTop">0dp</item>
lita_kornilova's avatar
lita_kornilova committed
263
264
        <item name="android:paddingStart">@dimen/size_24</item>
        <item name="android:paddingEnd">@dimen/size_24</item>
265
        <item name="android:textSize">@dimen/text_size_12</item>
266
267
        <item name="backgroundTint">@color/color_background_primary_button</item>
        <item name="android:textColor">@color/color_text_primary_button</item>
lita_kornilova's avatar
lita_kornilova committed
268
269
270
271
    </style>

    <style name="AppTheme.Button.Short">
        <item name="android:minHeight">@dimen/size_40</item>
272
273
    </style>

274
275
276
277
    <style name="AppTheme.Button.DarkBlue">
        <item name="backgroundTint">@color/primaryDark</item>
    </style>

278
    <style name="AppTheme.Button.Outlined" parent="Widget.MaterialComponents.Button.OutlinedButton">
279
280
281
        <item name="android:minHeight">@dimen/size_48</item>
        <item name="android:insetTop">0dp</item>
        <item name="android:insetBottom">0dp</item>
282
283
        <item name="android:textAllCaps">true</item>
        <item name="android:textSize">@dimen/text_size_12</item>
284
        <item name="android:textColor">@color/blue</item>
285
        <item name="android:letterSpacing">0.04</item>
286
        <item name="strokeColor">@color/blue</item>
287
        <item name="strokeWidth">@dimen/size_2</item>
288
        <item name="shapeAppearance">@style/ShapeAppearance.Button</item>
lita_kornilova's avatar
lita_kornilova committed
289
        <item name="fontFamily">@font/aino_bold</item>
290
291
    </style>

292
293
294
295
    <style name="AppTheme.Button.Outlined.Reverse">
        <item name="android:textColor">@color/white</item>
        <item name="strokeColor">@color/white</item>
        <item name="rippleColor">@color/white_12</item>
296
297
    </style>

298
299
300
301
    <style name="ShapeAppearance.Button" parent="">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSize">@dimen/size_100</item>
    </style>
Aleks's avatar
Aleks committed
302

Aleks's avatar
Aleks committed
303
304
    <style name="Text" parent="">
        <item name="android:textColor">@color/gray</item>
305
        <item name="android:fontFamily">@font/aino_regular</item>
306
307
        <item name="android:lineHeight" tools:targetApi="p">24sp</item>
        <item name="lineHeight">24sp</item>
308
309
310
311
312
313
    </style>

    <style name="Text.P16">
        <item name="android:textSize">16sp</item>
    </style>

314
315
316
317
    <style name="Text.P16.White">
        <item name="android:textColor">@color/white</item>
    </style>

318
319
320
321
322
323
324
325
    <style name="Text.P16.Bold">
        <item name="android:fontFamily">@font/aino_bold</item>
    </style>

    <style name="Text.P14">
        <item name="android:textSize">14sp</item>
    </style>

326
327
328
329
    <style name="Text.P14.Bold">
        <item name="android:fontFamily">@font/aino_bold</item>
    </style>

330
331
332
333
    <style name="Text.L12">
        <item name="android:textSize">12sp</item>
    </style>

334
335
336
337
    <style name="Text.L13">
        <item name="android:textSize">13sp</item>
    </style>

338
339
340
341
    <style name="Text.L14">
        <item name="android:textSize">14sp</item>
    </style>

342
343
344
345
    <style name="Text.L16">
        <item name="android:textSize">16sp</item>
    </style>

346
    <style name="Text.Heading2">
347
        <item name="android:fontFamily">@font/aino_headline</item>
348
349
350
351
        <item name="android:textSize">38sp</item>
        <item name="lineHeight">44sp</item>
    </style>

352
353
354
355
    <style name="Text.Heading2.White">
        <item name="android:textColor">@color/white</item>
    </style>

356
357
    <style name="Text.Heading3.Plus" parent="Text">
        <item name="android:fontFamily">@font/aino_headline</item>
358
359
        <item name="android:textSize">32sp</item>
        <item name="lineHeight">38sp</item>
360
        <item name="android:textStyle">normal</item>
361
362
    </style>

363
364
365
366
367
368
    <style name="ProgressBar" parent="Widget.AppCompat.ProgressBar">
        <item name="android:layout_width">@dimen/size_48</item>
        <item name="android:layout_height">@dimen/size_48</item>
        <item name="android:indeterminate">true</item>
    </style>

369
370
371
372
373
374
    <style name="ProgressBar.Home" parent="ProgressBar">
        <item name="android:indeterminateTintMode">src_atop</item>
        <item name="android:indeterminateTint">@color/blue</item>
        <item name="android:indeterminateDrawable">@drawable/circular_progress_bar</item>
    </style>

375
376
377
378
379
    <style name="ErrorDialog.Divider" parent="">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">@dimen/size_1</item>
        <item name="android:background">@color/gray4</item>
    </style>
380
381
382
383
384
385
386
387
    
    <style name="ShapeAppearance.AppTheme.LargeComponent" parent="ShapeAppearance.MaterialComponents.LargeComponent">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSizeTopLeft">@dimen/size_24</item>
        <item name="cornerSizeTopRight">@dimen/size_24</item>
        <item name="cornerSizeBottomLeft">0dp</item>
        <item name="cornerSizeBottomRight">0dp</item>
    </style>
388
</resources>