New issue
Advanced search Search tips

Issue 792610 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 671916



Sign in to add a comment

[macViewsBrowser] Bookmarks bar draws incorrect bookmark folder icons

Project Member Reported by shrike@chromium.org, Dec 6 2017

Issue description

Chrome Version: 65.0.3287.0
OS: macOS 10.12


 
Expected.png
14.6 KB View Download
Actual.png
13.5 KB View Download
Blocking: 671916
Labels: Pri-2
Status: Available (was: Untriaged)
Thanks for all of these! I'll do a big triage of  Issue 671916  blockers when the current phase is complete. See go/macviewstracking
Labels: M-68
[Bulk Edit]
Applying M-68 milestone per email discussion with ellyjones@. Pls change it if milestone is incorrectly applied. 

Comment 3 by lgrey@chromium.org, Feb 15 2018

Owner: lgrey@chromium.org
Status: Assigned (was: Available)
Labels: -M-68 Target-68
MacViews triage: let's target this at M-68.

Comment 5 by gov...@chromium.org, Mar 27 2018

Labels: M-68

Comment 6 by gov...@chromium.org, Mar 29 2018

** Bulk Edit **

FYI: Starting 04/13 M68 will be in canary, M68 Dev promotion will be on 04/26.

Project Member

Comment 7 by bugdroid1@chromium.org, Apr 16 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/31adef92e414f5855cd9def5d176968af4c5c587

commit 31adef92e414f5855cd9def5d176968af4c5c587
Author: Leonard Grey <lgrey@chromium.org>
Date: Mon Apr 16 18:10:45 2018

MacView: Use system icons for bookmark bar folders

Cocoa browser's logic for deciding whether to use the light (dark mode)
or regular icon requires converting the theme frame color to an NSColor
in NSCalibratedWhiteColorSpace and checking against an empirical
threshold.

To keep things in Views-land and maintain the same interface, this
change uses the light icon iff color_utils::IsDark returns false
for the given text color.

In practice, I will venture that anywhere this disagrees with Cocoa
is a borderline case anyway.

Bug:  792610 
Change-Id: I57b1c0cb90cf06fce4a8a3f31806dedd86791ebc
Reviewed-on: https://chromium-review.googlesource.com/1012966
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551037}
[modify] https://crrev.com/31adef92e414f5855cd9def5d176968af4c5c587/chrome/browser/ui/bookmarks/bookmark_utils.cc
[modify] https://crrev.com/31adef92e414f5855cd9def5d176968af4c5c587/chrome/browser/ui/bookmarks/bookmark_utils.h

Comment 8 by lgrey@chromium.org, Apr 16 2018

Status: Fixed (was: Assigned)
Labels: TE-Verified-67.0.3398.0 TE-Verified-M68
Able to reproduce this issue on Mac OS 10.12.6 on the build without fix 67.0.3396.0 and the issue is fixed on the latest Canary 68.0.3398.0.

By enabling #views-browser-windows flag, can observe that the bookmarks bar is showing the correct bookmarks folder icons.
Attached is the screen shot for reference.

Hence adding TE verified labels as the fix is working as intended.

Thanks..
792610-M68.png
98.8 KB View Download
Project Member

Comment 10 by bugdroid1@chromium.org, Apr 17 2018

Labels: merge-merged-testbranch
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/31adef92e414f5855cd9def5d176968af4c5c587

commit 31adef92e414f5855cd9def5d176968af4c5c587
Author: Leonard Grey <lgrey@chromium.org>
Date: Mon Apr 16 18:10:45 2018

MacView: Use system icons for bookmark bar folders

Cocoa browser's logic for deciding whether to use the light (dark mode)
or regular icon requires converting the theme frame color to an NSColor
in NSCalibratedWhiteColorSpace and checking against an empirical
threshold.

To keep things in Views-land and maintain the same interface, this
change uses the light icon iff color_utils::IsDark returns false
for the given text color.

In practice, I will venture that anywhere this disagrees with Cocoa
is a borderline case anyway.

Bug:  792610 
Change-Id: I57b1c0cb90cf06fce4a8a3f31806dedd86791ebc
Reviewed-on: https://chromium-review.googlesource.com/1012966
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551037}
[modify] https://crrev.com/31adef92e414f5855cd9def5d176968af4c5c587/chrome/browser/ui/bookmarks/bookmark_utils.cc
[modify] https://crrev.com/31adef92e414f5855cd9def5d176968af4c5c587/chrome/browser/ui/bookmarks/bookmark_utils.h

Sign in to add a comment