Skip to content

Commit

Permalink
Update search box corner radius for tablet productivity launcher
Browse files Browse the repository at this point in the history
Bug: 1278576
Change-Id: I0da9fff585a7cb287329e7b26140eb3991071e24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3329123
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#951255}
  • Loading branch information
Matthew Mourgos authored and Chromium LUCI CQ committed Dec 13, 2021
1 parent e6392dd commit e1d4490
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ash/app_list/views/search_box_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ int SearchBoxView::GetSearchBoxBorderCornerRadiusForState(
AppListState state) const {
if (state == AppListState::kStateSearchResults && app_list_view_ &&
!app_list_view_->is_in_drag()) {
return kSearchBoxBorderCornerRadiusSearchResult;
return features::IsProductivityLauncherEnabled()
? kExpandedSearchBoxCornerRadiusForProductivityLauncher
: kSearchBoxBorderCornerRadiusSearchResult;
}
return kSearchBoxBorderCornerRadius;
}
Expand Down
4 changes: 4 additions & 0 deletions ash/search_box/search_box_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ constexpr int kSearchBoxBorderCornerRadius = 24;
// The background border corner radius of the expanded search box.
constexpr int kSearchBoxBorderCornerRadiusSearchResult = 20;

// The background border corner radius of the active/expanded search box with
// productivity launcher enabled.
constexpr int kExpandedSearchBoxCornerRadiusForProductivityLauncher = 28;

// Preferred height of search box.
constexpr int kSearchBoxPreferredHeight = 48;

Expand Down

0 comments on commit e1d4490

Please sign in to comment.