Commit 99260dba authored by Roman Arora's avatar Roman Arora Committed by Commit Bot

Tab Search: Update button svg image

Updated screenshots:

Default view:
https://drive.google.com/file/d/1KLzsAnrQa4UomlH4HtWpUeRyhZzo315E/view

FixedEntrypoint view (guarded by chrome UI flag):
https://drive.google.com/file/d/1nHTx-GdNtOJBN6Zxp-YMh3E6zPYnXSYE/view

Bug: 1128599
Change-Id: I0db6a5400ff0cd8e5558576ec59537e0288d2b1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427103Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarThomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#810997}
parent 796e18a3
...@@ -116,6 +116,7 @@ aggregate_vector_icons("chrome_vector_icons") { ...@@ -116,6 +116,7 @@ aggregate_vector_icons("chrome_vector_icons") {
"tab_media_capturing.icon", "tab_media_capturing.icon",
"tab_media_capturing_with_arrow.icon", "tab_media_capturing_with_arrow.icon",
"tab_media_recording.icon", "tab_media_recording.icon",
"tab_search.icon",
"tab_usb_connected.icon", "tab_usb_connected.icon",
"tablet.icon", "tablet.icon",
"translate.icon", "translate.icon",
......
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
CANVAS_DIMENSIONS, 16,
MOVE_TO, 15, 8,
CUBIC_TO, 15, 4.14f, 11.86f, 1, 8, 1,
CUBIC_TO, 4.14f, 1, 1, 4.14f, 1, 8,
CUBIC_TO, 1, 11.86f, 4.14f, 15, 8, 15,
CUBIC_TO, 11.86f, 15, 15, 11.86f, 15, 8,
CLOSE,
MOVE_TO, 4.85f, 6,
LINE_TO, 11.15f, 6,
LINE_TO, 8, 10.8f,
LINE_TO, 4.85f, 6,
CLOSE
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "ui/views/widget/widget.h" #include "ui/views/widget/widget.h"
namespace { namespace {
constexpr int kIconSize = 20;
TabSearchOpenAction GetActionForEvent(const ui::Event& event) { TabSearchOpenAction GetActionForEvent(const ui::Event& event) {
if (event.IsMouseEvent()) { if (event.IsMouseEvent()) {
...@@ -46,9 +45,8 @@ void TabSearchButton::FrameColorsChanged() { ...@@ -46,9 +45,8 @@ void TabSearchButton::FrameColorsChanged() {
// Icon color needs to be updated here as this is called when the hosting // Icon color needs to be updated here as this is called when the hosting
// window switches between active and inactive states. In each state the // window switches between active and inactive states. In each state the
// foreground color of the tab controls is expected to change. // foreground color of the tab controls is expected to change.
SetImage( SetImage(Button::STATE_NORMAL,
Button::STATE_NORMAL, gfx::CreateVectorIcon(kTabSearchIcon, GetForegroundColor()));
gfx::CreateVectorIcon(kCaretDownIcon, kIconSize, GetForegroundColor()));
} }
void TabSearchButton::ButtonPressed(views::Button* sender, void TabSearchButton::ButtonPressed(views::Button* sender,
......
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