1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
10 <!-- Tab Strip Dimensions -->
11 <dimen name="tab_strip_height">0dp</dimen>
12 <dimen name="model_selector_button_margin_left">4dp</dimen>
13 <dimen name="model_selector_button_margin_top">10dp</dimen>
14 <dimen name="model_selector_button_margin_right">4dp</dimen>
15 <dimen name="model_selector_button_margin_bottom">3dp</dimen>
16 <dimen name="new_tab_button_margin_left">5dp</dimen>
17 <dimen name="new_tab_button_margin_top">8dp</dimen>
18 <dimen name="new_tab_button_margin_right">3dp</dimen>
19 <dimen name="new_tab_button_margin_bottom">3dp</dimen>
21 <!-- Full Screen Dimensions -->
22 <!-- Should match toolbar_height_no_shadow -->
23 <dimen name="control_container_height">48dp</dimen>
25 <!-- The combined height of the tab strip and toolbar. -->
26 <dimen name="tab_strip_and_toolbar_height">48dp</dimen>
28 <!-- TabSwitcher - Slop value for allowing slight misses on the close button. -->
29 <dimen name="close_button_slop">10dp</dimen>
30 <!-- TabSwitcher - Size of the shift applied to tabs when stacked. -->
31 <dimen name="stacked_tab_visible_size">4dp</dimen>
32 <!-- TabSwitcher - Buffer space above the stack. -->
33 <dimen name="stack_buffer_height">5dp</dimen>
34 <!-- TabSwitcher - Buffer space on the side of the stack. -->
35 <dimen name="stack_buffer_width">5dp</dimen>
36 <!-- TabSwitcher - Minimum spacing between tabs. -->
37 <dimen name="min_spacing">120dp</dimen>
38 <!-- TabSwitcher - Maximum over scroll. -->
39 <dimen name="over_scroll">75dp</dimen>
40 <!-- TabSwitcher - Minimum scrolling distance to even out all the tabs. -->
41 <dimen name="even_out_scrolling">400dp</dimen>
42 <!-- TabSwitcher - The minimum distance from the edge to commit a side swap. -->
43 <dimen name="swipe_commit_distance">120dp</dimen>
44 <!-- TabSwitcher - The space between tabs in the toolbar swiping transition. -->
45 <dimen name="toolbar_swipe_space_between_tabs">30dp</dimen>
46 <!-- TabSwitcher - The minimum distance from the edge to commit a toolbar side swap. -->
47 <dimen name="toolbar_swipe_commit_distance">90dp</dimen>
48 <!-- TabSwitcher - Max speed of the scroll from tilt events in dp/second. -->
49 <dimen name="max_tilt_scroll_speed">1000dp</dimen>
50 <!-- The maximum distance the user can initiate a side swipe in -->
51 <dimen name="swipe_region">30dp</dimen>
52 <!-- The distance that always initiate a side swipe -->
53 <dimen name="gutter_distance">6.4dp</dimen>
54 <!-- The distance that an scroll event has to cover in Y to be marked as trustworthy -->
55 <dimen name="side_swipe_accumulate_threshold">12dp</dimen>
56 <!-- The divider constant for the exponential function used for side swipe -->
57 <dimen name="side_swipe_constant">30dp</dimen>
58 <!-- TabSwitcher - Maximum amount to slide the tabs down or right in over scroll. -->
59 <dimen name="over_scroll_slide">10dp</dimen>
61 <!-- TabSwitcher - Border texture segmentations, as measured in border_top_right.png.
62 See GLTabBorder.java for an extensive description of all the values.
64 <dimen name="border_texture_title_left">4.5dp</dimen> <!-- 12px hdpi -->
65 <dimen name="border_texture_title_top">4.5dp</dimen> <!-- 3px hdpi -->
66 <dimen name="border_texture_title_right">8dp</dimen> <!-- 16px xhdpi -->
67 <dimen name="border_texture_title_bottom">28.5dp</dimen> <!-- 46px hdpi -->
68 <dimen name="border_texture_title_fade">24dp</dimen> <!-- 40px hdpi -->
69 <dimen name="tab_title_bar_shadow_x_offset">0.6667dp</dimen> <!-- 1px hdpi -->
70 <dimen name="tab_title_bar_shadow_y_offset">0.6667dp</dimen> <!-- 1px hdpi -->
71 <dimen name="tab_title_bar_shadow_x_offset_incognito">-0.6667dp</dimen> <!-- -1px hdpi -->
72 <dimen name="tab_title_bar_shadow_y_offset_incognito">-0.6667dp</dimen> <!-- -1px hdpi -->
73 <!-- The size of the text for tab titles in the switcher view. -->
74 <dimen name="tab_title_text_size">13dp</dimen>
75 <!-- The padding to the left of the tab title text (to the right of the favicon) in the
77 <dimen name="tab_title_text_start_padding">5dp</dimen>
78 <!-- The size of the boudning box for favicons in the tab switcher. -->
79 <dimen name="tab_title_favicon_size">16dp</dimen>
80 <!-- The visible margin of the shadow around the tab content. -->
81 <dimen name="tab_shadow_margin_left">30dp</dimen>
82 <dimen name="tab_shadow_margin_top">30dp</dimen>
83 <dimen name="tab_shadow_margin_right">30dp</dimen>
84 <dimen name="tab_shadow_margin_bottom">30dp</dimen>
86 <!-- Tab Shadow is a nodpi resource, so only defined here -->
87 <dimen name="tab_shadow_aperture_left">30dp</dimen>
88 <dimen name="tab_shadow_aperture_top">30dp</dimen>
89 <dimen name="tab_shadow_aperture_right">36dp</dimen>
90 <dimen name="tab_shadow_aperture_bottom">36dp</dimen>
92 <dimen name="border_frame_a_left">7.5dp</dimen> <!-- 15px xhdpi -->
93 <dimen name="border_frame_a_top">8dp</dimen> <!-- 16px xhdpi -->
94 <dimen name="border_frame_a_right">25dp</dimen> <!-- 50px xhdpi -->
95 <dimen name="border_frame_a_bottom">35dp</dimen> <!-- 70px xhdpi -->
96 <dimen name="border_frame_b_left">7.5dp</dimen> <!-- 17px xhdpi -->
97 <dimen name="border_frame_b_top">0dp</dimen> <!-- 0px xhdpi -->
98 <dimen name="border_frame_b_right">25dp</dimen> <!-- 50px xhdpi -->
99 <dimen name="border_frame_b_bottom">35dp</dimen> <!-- 70px xhdpi -->
100 <dimen name="border_frame_margin_left">4.5dp</dimen> <!-- 9px xhdpi -->
101 <dimen name="border_frame_margin_top">4.5dp</dimen> <!-- 9px xhdpi -->
102 <dimen name="border_frame_margin_right">4.5dp</dimen> <!-- 9px xhdpi -->
103 <dimen name="border_frame_margin_bottom">4.5dp</dimen> <!-- 9px xhdpi -->
105 <dimen name="border_close_button_margin_left">5dp</dimen> <!-- 10px xhdpi -->
106 <dimen name="border_close_button_margin_top">6dp</dimen> <!-- 12px xhdpi -->
107 <dimen name="border_close_button_margin_right">5dp</dimen> <!-- 10px xhdpi -->
108 <dimen name="border_close_button_margin_bottom">5dp</dimen> <!-- 10px xhdpi -->
110 <!-- Accessibility tab switcher -->
111 <dimen name="accessibility_tab_height">65dp</dimen>
113 <!-- SelectBookmarkFolder - Default indent for bookmark folders in the selection dialog. -->
114 <dimen name="select_bookmark_folder_item_left">6dp</dimen>
115 <!-- SelectBookmarkFolder - Incremental indentation for nested bookmark folders in the
116 selection dialog. -->
117 <dimen name="select_bookmark_folder_item_inc_left">10dp</dimen>
119 <!-- Find in Page dimensions -->
120 <dimen name="find_result_bar_touch_width">68dp</dimen>
121 <dimen name="find_result_bar_draw_width">45dp</dimen>
122 <dimen name="find_result_bar_result_min_height">8px</dimen>
123 <dimen name="find_result_bar_active_min_height">16px</dimen>
124 <dimen name="find_result_bar_vertical_padding">8px</dimen>
125 <dimen name="find_result_bar_min_gap_between_stacks">3px</dimen>
126 <dimen name="find_result_bar_stacked_result_height">3px</dimen>
127 <dimen name="find_in_page_text_size">15sp</dimen>
128 <dimen name="find_in_page_separator_width">1dp</dimen>
129 <!-- These are here to keep the layout inflater from getting angry about missing values.
130 They are used by tablet only -->
131 <dimen name="find_in_page_height">0dp</dimen>
132 <dimen name="find_in_page_right_margin">0dp</dimen>
133 <dimen name="find_in_page_width">0dp</dimen>
135 <!-- Toolbar dimensions -->
136 <dimen name="toolbar_tab_count_text_size_1_digit">7dp</dimen>
137 <dimen name="toolbar_tab_count_text_size_2_digit">6dp</dimen>
138 <dimen name="toolbar_height_no_shadow">48dp</dimen>
139 <dimen name="toolbar_height">50dp</dimen>
140 <dimen name="toolbar_shadow_height">2dp</dimen>
142 <dimen name="location_bar_margin_top">5dp</dimen>
143 <dimen name="location_bar_margin_bottom">6dp</dimen>
145 <dimen name="toolbar_url_expanded_padding">8dp</dimen>
146 <!-- The right padding baked into the new tab drawable. -->
147 <dimen name="toolbar_new_tab_image_right_padding">5.333dp</dimen>
148 <!-- The preferred left padding between the new tab drawable and the new tab text. -->
149 <dimen name="toolbar_new_tab_text_left_padding">4.6667dp</dimen>
150 <dimen name="location_bar_url_text_size">15sp</dimen>
151 <dimen name="omnibox_suggestion_height">60dp</dimen>
152 <dimen name="location_bar_icon_width">32dp</dimen>
153 <!-- Used for tablet only. -->
155 <!-- Custom Menu dimensions -->
156 <dimen name="menu_item_divider_width">1px</dimen>
157 <dimen name="menu_width">257dp</dimen>
158 <dimen name="menu_vertical_offset">0px</dimen>
159 <!-- The amount to fade the edges of the menu to indicate more content is available
161 <dimen name="menu_vertical_fade_distance">15dp</dimen>
163 <!-- NTP dimensions -->
164 <!-- Tooltip min distance from the edge of the screen. -->
165 <dimen name="tooltip_min_edge_margin">3dp</dimen>
166 <!-- Tooltip margin above click target. -->
167 <dimen name="tooltip_top_margin">2dp</dimen>
168 <!-- Tooltip border width around the main content bubble. -->
169 <dimen name="tooltip_border_width">1dp</dimen>
171 <!-- First Run Experience and Welcome Page dimensions -->
172 <!-- Margin for first run experience. -->
173 <dimen name="fre_margin">12dp</dimen>
174 <dimen name="fre_margin_tablet">36dp</dimen>
175 <dimen name="fre_small_margin_tablet">24dp</dimen>
176 <!-- Button padding for first run experience. -->
177 <dimen name="fre_button_padding">12dp</dimen>
178 <!-- Text size for buttons in first run experience. -->
179 <dimen name="fre_button_text_size">20sp</dimen>
180 <dimen name="fre_button_text_size_tablet">24sp</dimen>
181 <!-- Large text size for first run experience. -->
182 <dimen name="fre_large_text_size">15sp</dimen>
183 <dimen name="fre_large_text_size_tablet">18sp</dimen>
184 <!-- Normal text size for first run experience. -->
185 <dimen name="fre_normal_text_size">13sp</dimen>
186 <!-- Layout width for welcome page bubbles -->
187 <dimen name="bubble_width">130dp</dimen>
188 <!-- Padding for Welcome Page Bubbles -->
189 <dimen name="welcome_page_padding">5dp</dimen>
190 <!-- Top and Bottom Padding for Welcome Page Bubbles -->
191 <dimen name="welcome_page_ver_padding">10dp</dimen>
192 <!-- Animation bounce distance for welcome page bubbles -->
193 <dimen name="bubble_anim_dist">6dp</dimen>
194 <!-- Tooltip Y Margin for Welcome Page Search Bubble -->
195 <dimen name="search_bubble_margin">4dp</dimen>
196 <!-- Tooltip Y Margin for Welcome Page Tabs Bubble -->
197 <dimen name="tabs_bubble_margin">9dp</dimen>
198 <!-- Tooltip X Margin for Welcome Page Bubbles -->
199 <dimen name="bubble_tip_margin">8dp</dimen>
201 <!-- Infobar dimensions -->
202 <!-- Text size of the InfoBar message. -->
203 <dimen name="infobar_text_size">16sp</dimen>
204 <!-- Text size of text inside InfoBar buttons. -->
205 <dimen name="infobar_button_text_size">16sp</dimen>
206 <!-- Minimum dimension (height or width) of the upper row of an InfoBar. -->
207 <dimen name="infobar_min_size">60dp</dimen>
208 <!-- Margin between items in an InfoBar. -->
209 <dimen name="infobar_margin">10dp</dimen>
210 <!-- Left/right padding for infobar button text. -->
211 <dimen name="infobar_button_horizontal_padding">30dp</dimen>
212 <!-- Minimum height for a touch target. -->
213 <dimen name="infobar_touch_target_height">40dp</dimen>
214 <!-- Dimension (height or width) of the InfoBar icon. -->
215 <dimen name="infobar_icon_size">31dp</dimen>
217 <!-- Padding for autofill/password switches. -->
218 <dimen name="action_bar_switch_padding">16dp</dimen>
221 Padding needed to offset Android's default icon spacing.
222 (should match internal framework value of preference_icon_minWidth + preference_item_padding_side)
224 <dimen name="preference_item_padding">8dp</dimen>
226 <!-- Bookmarks widget dimensions -->
227 <dimen name="widget_thumbnail_height">94dp</dimen>
228 <dimen name="widget_horizontal_spacing">6dp</dimen>
229 <dimen name="widget_vertical_spacing">6dp</dimen>
230 <dimen name="widget_column_width">80dp</dimen>
231 <dimen name="widget_favicon_size">16dp</dimen>
233 <!-- Data usage chart dimensions -->
234 <dimen name="data_usage_chart_optimalWidth">440dp</dimen>
235 <dimen name="data_usage_chart_height">252dp</dimen>
237 <!-- Data reduction promo screen -->
238 <dimen name="data_reduction_promo_screen_width">320dp</dimen>
239 <dimen name="data_reduction_promo_screen_height">-1dp</dimen>
241 <!-- Video Fling related constants -->
242 <dimen name="remote_notification_logo_max_width">@android:dimen/notification_large_icon_width</dimen>
243 <dimen name="remote_notification_logo_max_height">64dp</dimen>
245 <!-- Menu button dragging related dimensions -->
246 <dimen name="auto_scroll_full_velocity">500dp</dimen>
247 <dimen name="edge_swipe_in_slop">25dp</dimen>
248 <dimen name="edge_swipe_in_additional_slop">50dp</dimen>
249 <dimen name="edge_swipe_out_slop">18dp</dimen>