Commit a2a0d278 authored by Yulun Wu's avatar Yulun Wu Committed by Commit Bot

Update suggestion chip spec: modify Icon and Label height from 16 to 20 px.

Bug: 976957
Change-Id: Id07f0688c86abdf4ca7e75f33152e4638ff2bd84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1802300
Commit-Queue: Yulun Wu <yulunwu@chromium.org>
Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696889}
parent 78c532bf
......@@ -246,6 +246,12 @@ int ItemIconInFolderIconMarginForType(ash::AppListConfigType type) {
return ItemIconInFolderIconMarginForType(ash::AppListConfigType::kShared);
}
int SuggestionChipIconDimension() {
// This is needed because chrome uses default instance when generating icons
// for suggestion chip and needs to be done for all configs including kShared.
return app_list_features::IsScalableAppListEnabled() ? 20 : 16;
}
} // namespace
AppListConfig::AppListConfig(ash::AppListConfigType type)
......@@ -272,7 +278,7 @@ AppListConfig::AppListConfig(ash::AppListConfigType type)
search_list_icon_dimension_(20),
search_list_icon_vertical_bar_dimension_(48),
search_list_badge_icon_dimension_(14),
suggestion_chip_icon_dimension_(16),
suggestion_chip_icon_dimension_(SuggestionChipIconDimension()),
app_title_max_line_height_(AppTitleMaxLineHeightForType(type)),
app_title_font_(AppTitleFontForType(type)),
peeking_app_list_height_(284),
......
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