Commit 045cd1db authored by Katie D's avatar Katie D Committed by Commit Bot

Updates Reader Mode icon.

Updates the Reader Mode active icon, and adds a new icon for
inactive state. See go/reader-mode-ux.

Bug: 1040706
Change-Id: I42658b42b19ade8d723d08c5e74f306d9c89c46a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2028257Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Katie Dektar <katie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737002}
parent 9d3c8046
...@@ -88,6 +88,7 @@ aggregate_vector_icons("chrome_vector_icons") { ...@@ -88,6 +88,7 @@ aggregate_vector_icons("chrome_vector_icons") {
"protected_content.icon", "protected_content.icon",
"qrcode_generator.icon", "qrcode_generator.icon",
"reader_mode.icon", "reader_mode.icon",
"reader_mode_disabled.icon",
"reload_touch.icon", "reload_touch.icon",
"remove.icon", "remove.icon",
"remove_box.icon", "remove_box.icon",
......
...@@ -2,20 +2,38 @@ ...@@ -2,20 +2,38 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// TODO(https://crbug.com/952042): Replace placeholder design.
CANVAS_DIMENSIONS, 16, CANVAS_DIMENSIONS, 16,
MOVE_TO, 2, 2, MOVE_TO, 7, 8,
R_H_LINE_TO, 12, LINE_TO, 13, 8,
R_V_LINE_TO, 3, LINE_TO, 13, 9,
H_LINE_TO, 2, LINE_TO, 7, 9,
LINE_TO, 7, 8,
CLOSE, CLOSE,
MOVE_TO, 2, 7, MOVE_TO, 7, 6,
R_H_LINE_TO, 12, LINE_TO, 13, 6,
R_V_LINE_TO, 3, LINE_TO, 13, 7,
H_LINE_TO, 2, LINE_TO, 7, 7,
LINE_TO, 7, 6,
CLOSE, CLOSE,
MOVE_TO, 2, 12, MOVE_TO, 7, 10,
R_H_LINE_TO, 8, LINE_TO, 13, 10,
R_V_LINE_TO, 3, LINE_TO, 13, 11,
H_LINE_TO, 2, LINE_TO, 7, 11,
LINE_TO, 7, 10,
CLOSE,
MOVE_TO, 14.36f, 1,
LINE_TO, 1.64f, 1,
CUBIC_TO, 0.74f, 1, 0, 1.79f, 0, 2.76f,
LINE_TO, 0, 14.24f,
CUBIC_TO, 0, 15.21f, 0.74f, 16, 1.64f, 16,
LINE_TO, 14.36f, 16,
CUBIC_TO, 15.26f, 16, 16, 15.21f, 16, 14.24f,
LINE_TO, 16, 2.76f,
CUBIC_TO, 16, 1.79f, 15.26f, 1, 14.36f, 1,
CLOSE,
MOVE_TO, 14.5f, 14.5f,
LINE_TO, 5.5f, 14.5f,
LINE_TO, 5.5f, 2.5f,
LINE_TO, 14.5f, 2.5f,
LINE_TO, 14.5f, 14.5f,
CLOSE CLOSE
// 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, 7, 8,
LINE_TO, 13, 8,
LINE_TO, 13, 9,
LINE_TO, 7, 9,
LINE_TO, 7, 8,
CLOSE,
MOVE_TO, 7, 6,
LINE_TO, 13, 6,
LINE_TO, 13, 7,
LINE_TO, 7, 7,
LINE_TO, 7, 6,
CLOSE,
MOVE_TO, 7, 10,
LINE_TO, 13, 10,
LINE_TO, 13, 11,
LINE_TO, 7, 11,
LINE_TO, 7, 10,
CLOSE,
MOVE_TO, 14.36f, 1,
LINE_TO, 1.64f, 1,
CUBIC_TO, 0.74f, 1, 0, 1.79f, 0, 2.76f,
LINE_TO, 0, 14.24f,
CUBIC_TO, 0, 15.21f, 0.74f, 16, 1.64f, 16,
LINE_TO, 14.36f, 16,
CUBIC_TO, 15.26f, 16, 16, 15.21f, 16, 14.24f,
LINE_TO, 16, 2.76f,
CUBIC_TO, 16, 1.79f, 15.26f, 1, 14.36f, 1,
CLOSE,
MOVE_TO, 14.5f, 14.5f,
LINE_TO, 5.5f, 14.5f,
LINE_TO, 5.5f, 2.5f,
LINE_TO, 14.5f, 2.5f,
LINE_TO, 14.5f, 14.5f,
CLOSE,
MOVE_TO, 3.5f, 14.5f,
LINE_TO, 1.5f, 14.5f,
LINE_TO, 1.5f, 2.5f,
LINE_TO, 3.5f, 2.5f,
LINE_TO, 3.5f, 14.5f,
CLOSE
...@@ -69,7 +69,7 @@ void ReaderModeIconView::UpdateImpl() { ...@@ -69,7 +69,7 @@ void ReaderModeIconView::UpdateImpl() {
} }
const gfx::VectorIcon& ReaderModeIconView::GetVectorIcon() const { const gfx::VectorIcon& ReaderModeIconView::GetVectorIcon() const {
return kReaderModeIcon; return active() ? kReaderModeIcon : kReaderModeDisabledIcon;
} }
base::string16 ReaderModeIconView::GetTextForTooltipAndAccessibleName() const { base::string16 ReaderModeIconView::GetTextForTooltipAndAccessibleName() const {
......
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