Commit 15066855 authored by Tommy Li's avatar Tommy Li Committed by Commit Bot

[omnibox] Adjust header to collaspe chevron spacing to 8px

This spacing was provided by the designer and matches the realbox.

Bug: 1128160
Change-Id: Ia5b4af4cbab04cf1b3a07eb2fa49e40a579d82be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422478
Auto-Submit: Tommy Li <tommycli@chromium.org>
Reviewed-by: default avatarMoe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809004}
parent 20d18220
...@@ -44,9 +44,8 @@ class OmniboxRowView::HeaderView : public views::View, ...@@ -44,9 +44,8 @@ class OmniboxRowView::HeaderView : public views::View,
views::BoxLayout* layout = views::BoxLayout* layout =
SetLayoutManager(std::make_unique<views::BoxLayout>( SetLayoutManager(std::make_unique<views::BoxLayout>(
views::BoxLayout::Orientation::kHorizontal)); views::BoxLayout::Orientation::kHorizontal));
// The icons in the header view match their sizing to the location bar. // This is the designer-provided spacing that matches the NTP Realbox.
layout->set_between_child_spacing( layout->set_between_child_spacing(8);
GetLayoutConstant(LOCATION_BAR_CHILD_INTERIOR_PADDING));
header_label_ = AddChildView(std::make_unique<views::Label>()); header_label_ = AddChildView(std::make_unique<views::Label>());
header_label_->SetHorizontalAlignment(gfx::HorizontalAlignment::ALIGN_LEFT); header_label_->SetHorizontalAlignment(gfx::HorizontalAlignment::ALIGN_LEFT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment