-
Notifications
You must be signed in to change notification settings - Fork 31
/
dimens.xml
96 lines (80 loc) · 4.22 KB
/
dimens.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
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors
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">
<!-- Common text sizes -->
<dimen name="headline_size">22sp</dimen>
<dimen name="text_size_large">16sp</dimen>
<dimen name="text_size_medium">14sp</dimen>
<dimen name="text_size_small">12sp</dimen>
<dimen name="headline_size_leading" tools:ignore="UnusedResources">28sp</dimen>
<dimen name="text_size_large_leading" tools:ignore="UnusedResources">24sp</dimen>
<dimen name="text_size_medium_leading" tools:ignore="UnusedResources">20sp</dimen>
<dimen name="text_size_small_leading" tools:ignore="UnusedResources">16sp</dimen>
<!-- Common alpha values -->
<item name="default_disabled_alpha" format="float" type="dimen">0.38</item>
<item name="default_pressed_alpha" format="float" type="dimen">0.06</item>
<item name="default_focused_hovered_alpha" format="float" type="dimen">0.06</item>
<item name="default_focused_alpha" format="float" type="dimen">0.06</item>
<item name="default_hovered_alpha" format="float" type="dimen">0.04</item>
<item name="default_icon_pressed_alpha" format="float" type="dimen" tools:ignore="UnusedResources">
0.50
</item>
<!-- Minimum height/width for a touchable item -->
<dimen name="min_touch_target_size">48dp</dimen>
<!-- Button default measures -->
<dimen name="button_min_width">88dp</dimen>
<dimen name="button_bg_vertical_inset">4dp</dimen>
<dimen name="button_outlined_border_width">1dp</dimen>
<!-- Menu footer chip measures-->
<!-- ( listPreferredItemHeightSmall(40dp) - text size(12sp) - top and bottom padding(12dp) ) / 2 -->
<dimen name="menu_footer_chip_end_padding">8dp</dimen>
<dimen name="menu_footer_chip_icon_size">16dp</dimen>
<dimen name="menu_footer_chip_vertical_inset">8dp</dimen>
<!-- Custom menu-->
<dimen name="menu_negative_software_vertical_offset">0dp</dimen>
<!-- Dropdown default measures -->
<dimen name="dropdown_item_height">50dp</dimen>
<dimen name="dropdown_item_divider_height">1px</dimen>
<dimen name="dropdown_item_label_margin">10dp</dimen>
<dimen name="dropdown_icon_margin">8dp</dimen>
<dimen name="dropdown_elevation">2dp</dimen>
<!-- Use arbitrary high number so that if the button text spans multiple
lines with XL text, the corners will still look fully rounded
TODO(crbug/1217139): Determine the corner radius based on button height-->
<dimen name="button_compat_corner_radius">500dp</dimen>
<dimen name="chrome_bullet_gap">12dp</dimen>
<dimen name="chrome_bullet_leading_offset">1dp</dimen>
<!-- Divider Dimensions -->
<dimen name="divider_height">1dp</dimen>
<!-- Drag shadow dimens -->
<dimen name="drag_shadow_border_corner_radius">8dp</dimen>
<dimen name="drag_shadow_border_size">1dp</dimen>
<dimen name="drag_shadow_min_size">48dp</dimen>
<!-- Misc -->
<dimen name="default_ripple_background_border_size">0dp</dimen>
<dimen name="popup_bg_corner_radius">4dp</dimen>
<!--
Fallback values if the corresponding com.android.internal.R dimensions
cannot be retrieved by name.
Note: Constants taken directly from Android's core/res/values/config.xml.
-->
<!-- TODO(crbug.com/900912): Fix and remove lint ignore -->
<dimen name="config_min_scaling_span" tools:ignore="InOrMmUsage">12.0mm</dimen>
<!-- Elevation levels -->
<dimen name="default_elevation_0">0dp</dimen>
<dimen name="default_elevation_1">1dp</dimen>
<dimen name="default_elevation_2">3dp</dimen>
<dimen name="default_elevation_3">6dp</dimen>
<dimen name="default_elevation_4">8dp</dimen>
<dimen name="default_elevation_5">12dp</dimen>
<dimen name="default_elevation_6">67dp</dimen>
<!-- TODO(crbug.com/1236215): Remove once dynamic color is ready for all cards -->
<dimen name="card_elevation">@dimen/default_elevation_1</dimen>
<dimen name="toast_elevation">@dimen/default_elevation_4</dimen>
<!-- Arbitrary shadow length for elevation levels -->
<dimen name="default_shadow_length_elev_2">6dp</dimen>
</resources>