1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
7 <!-- Connection info popup dimensions -->
8 <dimen name="connection_info_padding_wide">24dp</dimen>
9 <dimen name="connection_info_padding_thin">16dp</dimen>
11 <!-- Website Settings Popup Dimensions -->
12 <dimen name="website_settings_popup_padding_sides">16dp</dimen>
13 <dimen name="website_settings_popup_button_height">36dp</dimen>
14 <dimen name="website_settings_popup_button_padding_sides">8dp</dimen>
15 <dimen name="website_settings_popup_permission_icon_size">24dp</dimen>
17 <!-- Accessibility tab switcher -->
18 <dimen name="accessibility_tab_height">65dp</dimen>
20 <!-- TabSwitcher - The minimum distance from the edge to commit a side swap. -->
21 <dimen name="swipe_commit_distance">120dp</dimen>
22 <!-- TabSwitcher - Size of the shift applied to tabs when stacked. -->
23 <dimen name="stacked_tab_visible_size">4dp</dimen>
24 <!-- TabSwitcher - Buffer space above the stack. -->
25 <dimen name="stack_buffer_height">5dp</dimen>
26 <!-- TabSwitcher - Buffer space on the side of the stack. -->
27 <dimen name="stack_buffer_width">5dp</dimen>
28 <!-- TabSwitcher - Minimum spacing between tabs. -->
29 <dimen name="min_spacing">120dp</dimen>
30 <!-- TabSwitcher - Maximum over scroll. -->
31 <dimen name="over_scroll">75dp</dimen>
32 <!-- TabSwitcher - Minimum scrolling distance to even out all the tabs. -->
33 <dimen name="even_out_scrolling">400dp</dimen>
34 <!-- TabSwitcher - The space between tabs in the toolbar swiping transition. -->
35 <dimen name="toolbar_swipe_space_between_tabs">30dp</dimen>
36 <!-- TabSwitcher - The minimum distance from the edge to commit a toolbar side swap. -->
37 <dimen name="toolbar_swipe_commit_distance">90dp</dimen>
38 <!-- TabSwitcher - Maximum amount to slide the tabs down or right in over scroll. -->
39 <dimen name="over_scroll_slide">10dp</dimen>
42 <dimen name="tabswitcher_border_frame_padding_left">6dp</dimen>
43 <dimen name="tabswitcher_border_frame_padding_top">50dp</dimen>
44 <dimen name="tabswitcher_border_frame_transparent_top">3dp</dimen>
45 <dimen name="tabswitcher_border_frame_transparent_side">2dp</dimen>
48 <dimen name="border_texture_title_fade">24dp</dimen> <!-- 40px hdpi -->
49 <dimen name="tab_title_favicon_start_padding">10dp</dimen>
50 <dimen name="tab_title_favicon_end_padding">7dp</dimen>
52 <!-- Custom Menu dimensions -->
53 <dimen name="menu_width">258dp</dimen>
54 <dimen name="menu_negative_software_vertical_offset">0dp</dimen>
55 <!-- The amount to fade the edges of the menu to indicate more content is available
57 <dimen name="menu_vertical_fade_distance">15dp</dimen>
59 <!-- Menu button dragging related dimensions -->
60 <dimen name="auto_scroll_full_velocity">500dp</dimen>
62 <!-- Infobar dimensions -->
63 <!-- Text size of the infobar message. -->
64 <dimen name="infobar_text_size">16sp</dimen>
65 <!-- Minimum width of an infobar. -->
66 <dimen name="infobar_min_width">220dp</dimen>
67 <!-- Margin between items in an infobar. -->
68 <dimen name="infobar_margin">16dp</dimen>
69 <!-- Width and height of the infobar icon. -->
70 <dimen name="infobar_icon_size">36dp</dimen>
72 <!-- App banner dimensions -->
73 <dimen name="app_banner_icon_spacing">16dp</dimen>
75 <!-- Contextual search dimensions -->
76 <dimen name="contextual_search_bar_height">56dp</dimen>
77 <dimen name="contextual_search_text_size">18sp</dimen>
79 <!-- Password generation popup dimensions -->
80 <dimen name="password_generation_divider_height">1dp</dimen>
81 <dimen name="password_generation_text_size">14sp</dimen>
82 <dimen name="password_generation_horizontal_margin">10dp</dimen>
83 <dimen name="password_generation_text_vertical_margin">12dp</dimen>
85 <!-- Preferences dimensions -->
86 <dimen name="pref_autofill_field_horizontal_padding">3dp</dimen>
87 <dimen name="pref_autofill_field_top_padding">10dp</dimen>
89 <!-- Minimum height/width for a touchable item -->
90 <dimen name="min_touch_target_size">48dp</dimen>
93 <dimen name="data_usage_chart_height">252dp</dimen>
94 <dimen name="data_reduction_promo_screen_width">330dp</dimen>
95 <dimen name="data_reduction_promo_screen_height">460dp</dimen>
96 <dimen name="data_reduction_promo_title_text_size">20sp</dimen>
97 <dimen name="data_reduction_promo_normal_text_size">14sp</dimen>
98 <dimen name="data_reduction_promo_button_text_size">13sp</dimen>
99 <dimen name="data_reduction_promo_illustration_margin_bottom">30dp</dimen>
101 <!-- Text bubble dimensions -->
102 <!-- Tooltip min distance from the edge of the screen. -->
103 <dimen name="tooltip_min_edge_margin">3dp</dimen>
104 <!-- Tooltip margin above click target. -->
105 <dimen name="tooltip_top_margin">2dp</dimen>
106 <!-- Tooltip border width around the main content bubble. -->
107 <dimen name="tooltip_border_width">1dp</dimen>
108 <!-- Padding for tooltip content -->
109 <dimen name="tooltip_content_padding">5dp</dimen>
110 <!-- Tooltip x margin for text bubble -->
111 <dimen name="bubble_tip_margin">8dp</dimen>
113 <!-- Compositor Tab Title Dimensions -->
114 <dimen name="compositor_tab_title_bar_shadow_x_offset">0.6667dp</dimen> <!-- 1px hdpi -->
115 <dimen name="compositor_tab_title_bar_shadow_y_offset">0.6667dp</dimen> <!-- 1px hdpi -->
116 <dimen name="compositor_tab_title_bar_shadow_x_offset_incognito">-0.6667dp</dimen> <!-- -1px hdpi -->
117 <dimen name="compositor_tab_title_bar_shadow_y_offset_incognito">-0.6667dp</dimen> <!-- -1px hdpi -->
118 <!-- The size of the text for tab titles. -->
119 <dimen name="compositor_tab_title_text_size">13dp</dimen>
120 <!-- The size of the bounding box for favicons. -->
121 <dimen name="compositor_tab_title_favicon_size">16dp</dimen>
122 <!-- Slop value for allowing slight misses on the compositor button. -->
123 <dimen name="compositor_button_slop">10dp</dimen>
125 <!-- User Picture Dimensions -->
126 <dimen name="user_picture_size">40dp</dimen>
127 <dimen name="badged_user_picture_height">40dp</dimen>
128 <!-- The design spec is that the center of the badge should be 4dp from the right edge of the
129 user picture. This is equivalent to a badged_user_picture_width of 46dp assuming a badge_radius
131 <dimen name="badged_user_picture_width">46dp</dimen>
132 <dimen name="badge_radius">10dp</dimen>
133 <dimen name="badge_border_size">1.3dp</dimen>
135 <!-- Account Chooser infobar Dimensions -->
136 <dimen name="account_chooser_infobar_item_height">80dp</dimen>
138 <!-- First Run Experience and Welcome Page dimensions -->
139 <dimen name="fre_button_padding">16dp</dimen>
140 <dimen name="fre_margin">24dp</dimen>
141 <dimen name="fre_title_text_size">24sp</dimen>
142 <dimen name="fre_button_text_size">14sp</dimen>
143 <dimen name="fre_normal_text_size">14sp</dimen>
144 <dimen name="fre_image_carousel_width">260dp</dimen>
145 <dimen name="fre_image_carousel_height">130dp</dimen>
146 <dimen name="fre_checkmark_size">38dp</dimen>
147 <dimen name="fre_tos_checkbox_padding">12dp</dimen>
149 <!-- Sign-in promo dimensions -->
150 <dimen name="sign_in_promo_padding_bottom">16dp</dimen>
152 <!-- Autofill card unmasking prompt dimensions -->
153 <dimen name="autofill_card_unmask_tooltip_horizontal_padding">16dp</dimen>
154 <dimen name="autofill_card_unmask_tooltip_vertical_padding">4dp</dimen>
156 <!-- Cast related constants -->
157 <dimen name="remote_notification_logo_max_width">@android:dimen/notification_large_icon_width</dimen>
158 <dimen name="remote_notification_logo_max_height">64dp</dimen>
160 <!-- Alert dialog -->
161 <dimen name="dialog_padding_top">@dimen/abc_dialog_padding_top_material</dimen>
162 <dimen name="dialog_padding_sides">@dimen/abc_dialog_padding_material</dimen>
164 <!-- Tab Strip Dimensions -->
165 <dimen name="tab_strip_height">0dp</dimen>
167 <!-- Full Screen Dimensions -->
168 <!-- Should match toolbar_height_no_shadow -->
169 <dimen name="control_container_height">56dp</dimen>
170 <dimen name="custom_tabs_control_container_height">56dp</dimen>
171 <dimen name="webapp_control_container_height">22dp</dimen>
173 <!-- The combined height of the tab strip and toolbar. -->
174 <dimen name="tab_strip_and_toolbar_height">56dp</dimen>
176 <!-- SelectBookmarkFolder - Default indent for bookmark folders in the selection dialog. -->
177 <dimen name="select_bookmark_folder_item_left">15dp</dimen>
178 <!-- SelectBookmarkFolder - Incremental indentation for nested bookmark folders in the
179 selection dialog. -->
180 <dimen name="select_bookmark_folder_item_inc_left">10dp</dimen>
182 <!-- Find in Page dimensions -->
183 <dimen name="find_result_bar_touch_width">68dp</dimen>
184 <dimen name="find_result_bar_draw_width">46dp</dimen>
185 <dimen name="find_result_bar_result_min_height">8px</dimen>
186 <dimen name="find_result_bar_active_min_height">16px</dimen>
187 <dimen name="find_result_bar_vertical_padding">8px</dimen>
188 <dimen name="find_result_bar_min_gap_between_stacks">3px</dimen>
189 <dimen name="find_result_bar_stacked_result_height">3px</dimen>
190 <dimen name="find_in_page_separator_width">1dp</dimen>
191 <dimen name="find_in_page_popup_width">375dp</dimen>
192 <dimen name="find_in_page_popup_height">60dp</dimen>
193 <dimen name="find_in_page_popup_margin_end">62dp</dimen>
195 <!-- Web app dimensions -->
196 <dimen name="webapp_splash_image_size">128dp</dimen>
197 <dimen name="webapp_home_screen_icon_size">48dp</dimen>
198 <dimen name="webapp_splash_image_min_size">48dp</dimen>
200 <!-- Toolbar dimensions -->
201 <dimen name="toolbar_tab_count_text_size_1_digit">12dp</dimen>
202 <dimen name="toolbar_tab_count_text_size_2_digit">10dp</dimen>
203 <dimen name="toolbar_height_no_shadow">56dp</dimen>
205 <dimen name="location_bar_margin_top">5dp</dimen>
206 <dimen name="location_bar_margin_bottom">5dp</dimen>
208 <dimen name="toolbar_edge_padding">8dp</dimen>
209 <dimen name="location_bar_url_text_size">17sp</dimen>
210 <dimen name="location_bar_incognito_badge_padding">7dp</dimen>
211 <dimen name="omnibox_suggestion_height">60dp</dimen>
212 <dimen name="omnibox_suggestion_answer_height">72dp</dimen>
213 <dimen name="omnibox_suggestion_list_padding_top">0dp</dimen>
214 <dimen name="omnibox_suggestion_list_padding_bottom">0dp</dimen>
215 <dimen name="location_bar_icon_width">36dp</dimen>
216 <dimen name="tablet_toolbar_end_padding">6dp</dimen>
217 <!-- Offset applied to the toolbar menu button in document mode to align with the menu
218 positioned inside the omnibox. -->
219 <dimen name="document_toolbar_menu_offset">5dp</dimen>
221 <!-- NTP dimensions -->
222 <dimen name="most_visited_spacing">16dp</dimen>
223 <dimen name="most_visited_tile_width">156dp</dimen>
224 <dimen name="most_visited_thumbnail_width">148dp</dimen>
225 <dimen name="most_visited_thumbnail_height">94dp</dimen>
226 <dimen name="most_visited_bg_corner_radius">2dp</dimen>
227 <!-- 250dp was chosen because it's smaller than the smallest dimension on the smallest device,
228 so we'll always have at least two columns of tiles (except in multiwindow with a narrow
230 <dimen name="most_visited_two_column_min_width">250dp</dimen>
231 <!-- 450dp was chosen because it's greater than the width of the largest phone in portrait yet
232 less than the width of the smallest phone in landscape. So, we'll always have two columns
233 in portrait and three in landscape (except in atypical situations, like multiwindow). -->
234 <dimen name="most_visited_three_column_min_width">450dp</dimen>
235 <dimen name="icon_most_visited_layout_max_width">504dp</dimen>
236 <dimen name="icon_most_visited_layout_padding_top">16dp</dimen>
237 <dimen name="icon_most_visited_layout_no_logo_padding_top">28dp</dimen>
238 <dimen name="icon_most_visited_layout_bleed">8dp</dimen>
239 <dimen name="icon_most_visited_vertical_spacing">7dp</dimen>
240 <dimen name="icon_most_visited_min_horizontal_spacing">4dp</dimen>
241 <dimen name="icon_most_visited_max_horizontal_spacing">16dp</dimen>
242 <dimen name="icon_most_visited_tile_width">80dp</dimen>
243 <dimen name="icon_most_visited_icon_size">48dp</dimen>
244 <dimen name="ntp_logo_height">116dp</dimen>
245 <dimen name="ntp_list_item_padding">16dp</dimen>
246 <dimen name="ntp_list_item_min_height">48dp</dimen>
247 <dimen name="ntp_list_item_text_size">16sp</dimen>
248 <dimen name="ntp_list_item_favicon_container_size">24dp</dimen>
249 <dimen name="ntp_shadow_height">9dp</dimen>
251 <!-- Bookmarks page -->
252 <dimen name="bookmark_folder_min_height">48dp</dimen>
253 <dimen name="bookmark_folder_text_size">16sp</dimen>
255 <!-- Recent tabs page -->
256 <dimen name="recent_tabs_visible_separator_padding">8dp</dimen>
257 <dimen name="recent_tabs_promo_padding">16dp</dimen>
260 <dimen name="snackbar_min_height">48dp</dimen>
261 <dimen name="snackbar_tablet_width">450dp</dimen>
262 <dimen name="snackbar_tablet_margin">24dp</dimen>
264 <!-- Bookmarks widget dimensions -->
265 <dimen name="widget_thumbnail_height">94dp</dimen>
266 <dimen name="widget_horizontal_spacing">6dp</dimen>
267 <dimen name="widget_vertical_spacing">6dp</dimen>
268 <dimen name="widget_column_width">80dp</dimen>
269 <dimen name="widget_favicon_size">16dp</dimen>
271 <!-- Reader Mode dimensions -->
272 <dimen name="reader_mode_text_size">14sp</dimen>
274 <!-- Enhanced bookmarks dimensions -->
275 <dimen name="enhanced_bookmark_item_corner_radius">3dp</dimen>
276 <dimen name="enhanced_bookmark_item_icon_text_size">10dp</dimen>
277 <dimen name="enhanced_bookmark_item_icon_size">16dp</dimen>
278 <dimen name="enhanced_bookmark_item_min_icon_size">16px</dimen>
279 <dimen name="enhanced_bookmark_item_popup_width">140dp</dimen>
280 <dimen name="enhanced_bookmark_folder_item_left">16dp</dimen>
281 <dimen name="enhanced_bookmark_minimum_dialog_size_tablet">500dp</dimen>
282 <dimen name="enhanced_bookmark_drawer_drawable_padding">18dp</dimen>
284 <!-- Custom Tabs dimensions -->
285 <dimen name="custom_tabs_toolbar_maxWidth">60dp</dimen>
286 <dimen name="custom_tabs_toolbar_vertical_padding">16dp</dimen>
287 <dimen name="toolbar_icon_height">24dp</dimen>
288 <dimen name="min_toolbar_icon_side_padding">6dp</dimen>
289 <dimen name="custom_tabs_url_text_size">12sp</dimen>
290 <dimen name="custom_tabs_title_text_size">16sp</dimen>
292 <!-- Favicon dimensions -->
293 <dimen name="default_favicon_size">16dp</dimen>
295 <!-- Media UI dimensions -->
296 <!-- The media_session_icon_size is just big enough to make sure Android doesn't discard the
297 icon but otherwise, the icon is meant to be a flat color so it doesn't really matter. -->
298 <dimen name="media_session_icon_size">48dp</dimen>
300 <!-- Offline pages dimensions -->
301 <dimen name="offline_page_item_vertical_spacing">40dp</dimen>