Commit 87c8d8fd authored by Thomas Tangl's avatar Thomas Tangl Committed by Commit Bot

[profile-menu] Update sync icons

Bug: 995720
Change-Id: Ib8863788082efb13f38831813e86dff5289d810b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1865247
Auto-Submit: Thomas Tangl <tangltom@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706473}
parent 78d2b19b
...@@ -105,6 +105,7 @@ aggregate_vector_icons("chrome_vector_icons") { ...@@ -105,6 +105,7 @@ aggregate_vector_icons("chrome_vector_icons") {
"sync.icon", "sync.icon",
"sync_circle.icon", "sync_circle.icon",
"sync_error_circle.icon", "sync_error_circle.icon",
"sync_paused.icon",
"sync_paused_circle.icon", "sync_paused_circle.icon",
"sync_problem.icon", "sync_problem.icon",
"sync_switch_account.icon", "sync_switch_account.icon",
......
// Copyright 2019 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, 6.67f, 4.23f,
LINE_TO, 6.67f, 2.84f,
CUBIC_TO, 6.13f, 2.98f, 5.63f, 3.2f, 5.18f, 3.48f,
LINE_TO, 6.15f, 4.45f,
CUBIC_TO, 6.32f, 4.37f, 6.49f, 4.29f, 6.67f, 4.23f,
CLOSE,
MOVE_TO, 1.91f, 3.61f,
LINE_TO, 3.48f, 5.18f,
CUBIC_TO, 2.97f, 5.99f, 2.67f, 6.96f, 2.67f, 8,
CUBIC_TO, 2.67f, 9.47f, 3.27f, 10.8f, 4.24f, 11.76f,
LINE_TO, 2.67f, 13.33f,
LINE_TO, 6.67f, 13.33f,
LINE_TO, 6.67f, 9.33f,
LINE_TO, 5.17f, 10.83f,
CUBIC_TO, 4.45f, 10.1f, 4, 9.11f, 4, 8,
CUBIC_TO, 4, 7.33f, 4.17f, 6.71f, 4.45f, 6.15f,
LINE_TO, 9.84f, 11.54f,
CUBIC_TO, 9.67f, 11.63f, 9.51f, 11.71f, 9.33f, 11.77f,
LINE_TO, 9.33f, 13.16f,
CUBIC_TO, 9.86f, 13.02f, 10.36f, 12.8f, 10.81f, 12.52f,
LINE_TO, 12.39f, 14.09f,
LINE_TO, 13.23f, 13.25f,
LINE_TO, 2.76f, 2.76f,
LINE_TO, 1.91f, 3.61f,
CLOSE,
MOVE_TO, 13.33f, 2.67f,
LINE_TO, 9.33f, 2.67f,
LINE_TO, 9.33f, 6.67f,
LINE_TO, 10.83f, 5.17f,
CUBIC_TO, 11.55f, 5.9f, 12, 6.89f, 12, 8,
CUBIC_TO, 12, 8.67f, 11.83f, 9.29f, 11.55f, 9.85f,
LINE_TO, 12.52f, 10.82f,
CUBIC_TO, 13.03f, 10.01f, 13.33f, 9.04f, 13.33f, 8,
CUBIC_TO, 13.33f, 6.53f, 12.73f, 5.2f, 11.76f, 4.24f,
LINE_TO, 13.33f, 2.67f,
CLOSE
\ No newline at end of file
...@@ -464,7 +464,7 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() { ...@@ -464,7 +464,7 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() {
return gfx::ImageSkia(); return gfx::ImageSkia();
if (!identity_manager->HasPrimaryAccount()) if (!identity_manager->HasPrimaryAccount())
return ColoredImageForMenu(kSyncPausedCircleIcon, gfx::kGoogleGrey400); return ColoredImageForMenu(kSyncPausedIcon, gfx::kGoogleGrey500);
const gfx::VectorIcon* icon = nullptr; const gfx::VectorIcon* icon = nullptr;
ui::NativeTheme::ColorId color_id; ui::NativeTheme::ColorId color_id;
...@@ -472,11 +472,11 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() { ...@@ -472,11 +472,11 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() {
switch ( switch (
sync_ui_util::GetMessagesForAvatarSyncError(profile, &unused, &unused)) { sync_ui_util::GetMessagesForAvatarSyncError(profile, &unused, &unused)) {
case sync_ui_util::NO_SYNC_ERROR: case sync_ui_util::NO_SYNC_ERROR:
icon = &kSyncCircleIcon; icon = &kSyncIcon;
color_id = ui::NativeTheme::kColorId_AlertSeverityLow; color_id = ui::NativeTheme::kColorId_AlertSeverityLow;
break; break;
case sync_ui_util::AUTH_ERROR: case sync_ui_util::AUTH_ERROR:
icon = &kSyncPausedCircleIcon; icon = &kSyncPausedIcon;
color_id = ui::NativeTheme::kColorId_ProminentButtonColor; color_id = ui::NativeTheme::kColorId_ProminentButtonColor;
break; break;
case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR: case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR:
...@@ -484,7 +484,7 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() { ...@@ -484,7 +484,7 @@ gfx::ImageSkia ProfileMenuView::GetSyncIcon() {
case sync_ui_util::UPGRADE_CLIENT_ERROR: case sync_ui_util::UPGRADE_CLIENT_ERROR:
case sync_ui_util::PASSPHRASE_ERROR: case sync_ui_util::PASSPHRASE_ERROR:
case sync_ui_util::SETTINGS_UNCONFIRMED_ERROR: case sync_ui_util::SETTINGS_UNCONFIRMED_ERROR:
icon = &kSyncPausedCircleIcon; icon = &kSyncPausedIcon;
color_id = ui::NativeTheme::kColorId_AlertSeverityHigh; color_id = ui::NativeTheme::kColorId_AlertSeverityHigh;
break; break;
} }
......
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