New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 611793 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
no longer active
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[Media Router Action] Update action icons to handle (non-)retina

Project Member Reported by apaci...@chromium.org, May 13 2016

Issue description

With top Chrome going Material, we should handle retina/non-retina displays. At 100%, switch between 16x16 vs. 19x19 icon based on type of display.

1. Set #top-chrome-md to "Material".
2. Enable #media-router.
3. Download Cast extension.
4. Observe the icon in the extensions toolbar is blurry in non-retina, sharp in retina display.
 
Components: Blink>PresentationAPI
s/type of display/top-chrome-md option
Status: Started (was: Assigned)
I've filed a request for the new icons.
estade@ removed our icons in favor of vectors, so we no longer need new icons. We just need to scale action icons properly based on (non-)retina.

https://codereview.chromium.org/2143863004/
From offline conversation - we should see if updating the vectors to 16x16 would scale them properly. Trying to rescale the vectors may cause some distortion.

Messaged bettes@ for new SVGs.
Cc: apaci...@chromium.org
Owner: bettes@chromium.org
Status: Assigned (was: Started)
bettes@ - per email thread - could we get new SVGs for cast? Thanks!

Comment 7 by bettes@chromium.org, Sep 19 2016

Status: WontFix (was: Assigned)
Not sure what the status is here. Feel free to re-open this if necessary
Status: Assigned (was: WontFix)
bettes - could we get 16x16 SVGs for all four Media Router icons? They're currently 19x19 and it'll look better if we don't try scaling them programmatically. There's also an email thread if easier to follow up there. Thanks!
Is there an update on this?  Is there a tool that can do this scaling automatically?

Currently waiting for new SVGs.

We could specify 16 (for dimension) on the CreateVectorIcon() call, but estade@ recommended against doing this since icons of this size would "need some hand-tweaking to make sure strokes and so forth land on exact pixel boundaries."
Cc: -apaci...@chromium.org
Owner: apaci...@chromium.org
SVGs with color guide attached
https://drive.google.com/open?id=0BxMIIGI80eU-cG0wYUlYaXNKV3M


colors.png
29.9 KB View Download
Thanks bettes!

Replacing the existing 19x19 icons for the new 16x16 SVGs (to .icon files) fixes this issue, and appears to scale upwards properly on other platforms so far (mac retina, non-retina, linux). I will have to spend some more time looking at all the cases before just swapping them out. If this works as is, it'll be great to avoid having duplicate .icon files.

Attached are before/after screenshots on non-retina.
before.png
5.8 KB View Download
after.png
5.9 KB View Download
Status: Started (was: Assigned)
I have the SVGs skiafied (mix of estade@'s tool and manual tweaks/drawing). The new .icon files have been tested against linux, windows, and osx (retina/non-retina).

estade@ is the vector icons OWNER and currently OOO, but the fix is out for review.
Project Member

Comment 14 by bugdroid1@chromium.org, Oct 14 2016

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

commit 98acaca15019db2fae365cd186660ff8b9276ae0
Author: apacible <apacible@chromium.org>
Date: Fri Oct 14 16:32:53 2016

[Media Router] Update toolbar icons to handle non-retina displays.

This change updates the .icon dimensions from 19 to 16. This fixes an issue on non-retina displays where the icon is automatically scaled down, which makes the icons appear blurry.

When the dimension is 16, the size auto-scales up for retina displays without blurring the image.

The new icons were produced by a designer, and skiafied using estade@'s skiafy tool. Some manual tweaking done to the error icon.

BUG= 611793 
TEST=manual testing on osx (retina, non-retina), linux, windows for all four icons

Review-Url: https://codereview.chromium.org/2412243002
Cr-Commit-Position: refs/heads/master@{#425350}

[modify] https://crrev.com/98acaca15019db2fae365cd186660ff8b9276ae0/ui/gfx/vector_icons/media_router_active.icon
[modify] https://crrev.com/98acaca15019db2fae365cd186660ff8b9276ae0/ui/gfx/vector_icons/media_router_error.icon
[modify] https://crrev.com/98acaca15019db2fae365cd186660ff8b9276ae0/ui/gfx/vector_icons/media_router_idle.icon
[modify] https://crrev.com/98acaca15019db2fae365cd186660ff8b9276ae0/ui/gfx/vector_icons/media_router_warning.icon

Cc: ranjitkan@chromium.org
Labels: Needs-Feedback
Rechecked this issue for chrome version 56.0.2897.0 on Windows 10, MAC (Retina & Non retina) 10.11.6, Ubuntu 14.04. Icons do not look blurry. Attached are screen shots for the same.

Note: Do not have a cast device hence cannot check the color guide as displayed in comment# 11.

Could some one please check and confirm if this is sufficient, so that we can add TE-Verified labels.

Thanks.!
Casticon-Windows.png
824 bytes View Download
Cast Icon - Retina.png
10.6 KB View Download
Cast Icon - Non retina.png
9.8 KB View Download
Cast Icon - Linux.png
6.5 KB View Download
Status: Fixed (was: Started)
Manually tested active, warning, error cases on linux and osx (retina and non-retina). The fixed error icon is also reflected in canary in 56.
Status: Verified (was: Fixed)

Sign in to add a comment