forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dimens.xml
71 lines (59 loc) · 3.15 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
<?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">
<!-- 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>
<!-- 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">6dp</dimen>
<!-- Chips default measures -->
<dimen name="chip_border_width">1dp</dimen>
<dimen name="chip_corner_radius">8dp</dimen>
<dimen name="chip_default_height">32dp</dimen>
<dimen name="chip_end_padding">16dp</dimen>
<dimen name="chip_element_leading_padding">8dp</dimen>
<dimen name="chip_bg_vertical_inset">8dp</dimen>
<item name="chip_background_selected_focused_alpha" format="float" type="dimen">0.12</item>
<item name="chip_background_selected_alpha" format="float" type="dimen">0.06</item>
<dimen name="chip_icon_size">20dp</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_vertical_margin">4dp</dimen>
<dimen name="dropdown_elevation">2dp</dimen>
<dimen name="button_compat_corner_radius">4dp</dimen>
<dimen name="chrome_bullet_gap">12dp</dimen>
<dimen name="chrome_bullet_leading_offset">1dp</dimen>
<!-- Divider Dimensions -->
<dimen name="divider_height">1dp</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>
</resources>