Commit 2ebfbf49 authored by Tommy C. Li's avatar Tommy C. Li Committed by Commit Bot

[omnibox] Fix Remove Suggestion button color

Previously, we were setting the color for the Remove Suggestion button
incorrectly, making it slightly different from other icons in the
omnibox. (We accidentally set related_text_color instead of icon_color.)

This CL corrects that problem.

Bug: 1071183
Change-Id: Ifc56fd6afd7da56c4d1cecdbdb44faa40dbe3063
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2260951
Commit-Queue: Tommy Li <tommycli@chromium.org>
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Auto-Submit: Tommy Li <tommycli@chromium.org>
Reviewed-by: default avatarmanuk hovanesian <manukh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781617}
parent 6517cd7e
......@@ -477,10 +477,10 @@ gfx::Size OmniboxResultView::CalculatePreferredSize() const {
void OmniboxResultView::OnThemeChanged() {
views::View::OnThemeChanged();
views::SetImageFromVectorIcon(remove_suggestion_button_,
vector_icons::kCloseRoundedIcon,
GetLayoutConstant(LOCATION_BAR_ICON_SIZE),
GetColor(OmniboxPart::RESULTS_ICON));
views::SetImageFromVectorIconWithColor(
remove_suggestion_button_, vector_icons::kCloseRoundedIcon,
GetLayoutConstant(LOCATION_BAR_ICON_SIZE),
GetColor(OmniboxPart::RESULTS_ICON));
ApplyThemeAndRefreshIcons(true);
}
......
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