Commit b3ddf5d5 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update the color of Incognito Menu's Icon.

Incognito menu's color is modified to primary text color to ensure
contrast with menu background.

Bug: 896235
Change-Id: I96c31f2326bb249c5e5af9a42dd8944481eef281
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1482451
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637619}
parent 8eb6b70b
......@@ -524,8 +524,10 @@ views::View* ProfileChooserView::CreateIncognitoWindowCountView() {
int incognito_window_count =
BrowserList::GetIncognitoSessionsActiveForProfile(browser()->profile());
auto incognito_icon = std::make_unique<views::ImageView>();
const SkColor icon_color = ThemeProperties::GetDefaultColor(
ThemeProperties::COLOR_TOOLBAR, true /* incognito */);
// The icon color is set to match the menu text, which guarantees sufficient
// contrast and a consistent visual appearance..
const SkColor icon_color = provider->GetTypographyProvider().GetColor(
*this, views::style::CONTEXT_LABEL, views::style::STYLE_PRIMARY);
incognito_icon->SetImage(
gfx::CreateVectorIcon(kIncognitoProfileIcon, icon_color));
......
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