Commit e1a7466b authored by Jenny Zhang's avatar Jenny Zhang Committed by Commit Bot

Render remove and append buttons in the correct color.

Bug: 941516
Change-Id: If61199c999f6018d4993eaa2bd6c1fb02006845a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611870Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Jenny Zhang <jennyz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659702}
parent 31f461ba
...@@ -34,8 +34,6 @@ namespace { ...@@ -34,8 +34,6 @@ namespace {
// #000 at 87% opacity. // #000 at 87% opacity.
constexpr SkColor kListIconColor = SkColorSetARGB(0xDE, 0x00, 0x00, 0x00); constexpr SkColor kListIconColor = SkColorSetARGB(0xDE, 0x00, 0x00, 0x00);
constexpr SkColor kImageButtonColor = gfx::kGoogleGrey700;
int ACMatchStyleToTagStyle(int styles) { int ACMatchStyleToTagStyle(int styles) {
int tag_styles = 0; int tag_styles = 0;
if (styles & ACMatchClassification::URL) if (styles & ACMatchClassification::URL)
...@@ -299,14 +297,14 @@ void OmniboxResult::SetZeroSuggestionActions() { ...@@ -299,14 +297,14 @@ void OmniboxResult::SetZeroSuggestionActions() {
switch (button_action) { switch (button_action) {
case ash::OmniBoxZeroStateAction::kRemoveSuggestion: case ash::OmniBoxZeroStateAction::kRemoveSuggestion:
button_image = gfx::CreateVectorIcon( button_image = gfx::CreateVectorIcon(
kSearchResultRemoveIcon, kImageButtonIconSize, kImageButtonColor); kSearchResultRemoveIcon, kImageButtonIconSize, kListIconColor);
button_tooltip = l10n_util::GetStringFUTF16( button_tooltip = l10n_util::GetStringFUTF16(
IDS_APP_LIST_REMOVE_SUGGESTION_ACCESSIBILITY_NAME, title()); IDS_APP_LIST_REMOVE_SUGGESTION_ACCESSIBILITY_NAME, title());
visible_on_hover = true; // visible upon hovering visible_on_hover = true; // visible upon hovering
break; break;
case ash::OmniBoxZeroStateAction::kAppendSuggestion: case ash::OmniBoxZeroStateAction::kAppendSuggestion:
button_image = gfx::CreateVectorIcon( button_image = gfx::CreateVectorIcon(
kSearchResultAppendIcon, kImageButtonIconSize, kImageButtonColor); kSearchResultAppendIcon, kImageButtonIconSize, kListIconColor);
button_tooltip = l10n_util::GetStringFUTF16( button_tooltip = l10n_util::GetStringFUTF16(
IDS_APP_LIST_APPEND_SUGGESTION_ACCESSIBILITY_NAME, title()); IDS_APP_LIST_APPEND_SUGGESTION_ACCESSIBILITY_NAME, title());
visible_on_hover = false; // always visible visible_on_hover = false; // always visible
......
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