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

Issue 768748 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Not enough cats in the system tray

Project Member Reported by peter@chromium.org, Sep 26 2017

Issue description

The Chrome OS system tray can display the small icon of notifications that are waiting for the user. This is analogous to the status bar on Android devices.

Web Developers can indicate the small icon of their notifications through the `badge` property. We support this for Android. Just on Android.

https://notifications.spec.whatwg.org/#badge-resource

Because of this, Web Notifications shown on Chrome OS use the default icon at most. Since they're now visible on the toast as well, let's just remove the Android-only restriction.

Test this at:
https://tests.peter.sh/notification-generator/

When fixed, the notification and the system tray icon should have a cat with the appropriate accent colour.
 

Comment 2 by tetsui@chromium.org, Sep 26 2017

Thank you Peter!

+Sebastien I wonder if you had any thoughts on this UI change. The icon on the top left in notification would be masked version of web page supplied icon.
Screenshot 2017-09-26 at 6.47.33 PM.png
34.4 KB View Download
The intention was to follow android guideline for notification. Meaning that the right-hand icon would not be provided anymore unless absolutely helping the content (image preview or contact picture). We page would supply a monochrome version (automatically painted if not) for the icon in the header.

Unless the web page supplies the icon, just like on Android, I cannot recommend we automatically paint over an icon not designed for that. 

In term of color, I thought about enabling customization but it's another can of worm I don't want to open right now (mostly accessibility concerns and the need to build around that). 

Comment 4 by peter@chromium.org, Sep 26 2017

> Unless the web page supplies the icon, just like on Android, I cannot recommend we automatically paint over an icon not designed for that.

This is for icons specifically provided by the website. We already support this on Android, so I think of this as aligning the platforms.

> In term of color, I thought about enabling customization but it's another can of worm I don't want to open right now (mostly accessibility concerns and the need to build around that).

Yes, I briefly mentioned accessibility as the blocking concern for exposing that functionality in a meeting with the Tokyo team yesterday.

However, we *do* already have Chrome UI approval for this. Android ensures that there is sufficient contrast natively, so if we were to have a similar mechanism for the message center there won't be any further blockers.

Nonetheless, that's another issue - for the icon we just have to make sure that it does the right thing whatever colour is decided upon, which, for now, will be the default color when dealing with Web Notifications.
> Nonetheless, that's another issue - for the icon we just have to make sure that it does the right thing whatever colour is decided upon, which, for now, will be the default color when dealing with Web Notifications.

That means painting whatever they give us right ? Just like you showed in your example?

Sent a message off thread to update badges and requirements.

Comment 6 by peter@chromium.org, Sep 26 2017

>> That means painting whatever they give us right ? Just like you showed in your example?

Yes, but masked with the default accent colour for small icons. Right now that is defined to be the Chrome icon grey, i.e. 0x5A5A5A.
Got it that makes sense.
Cc: shihuis@chromium.org bever...@google.com azeemarshad@chromium.org shibasheikh@chromium.org jonmann@chromium.org peter@chromium.org elizabethchiu@chromium.org
 Issue 889616  has been merged into this issue.
Hey folks, is there any update here with regards to whether crrev/684454 should land?
Project Member

Comment 10 by bugdroid1@chromium.org, Dec 19

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

commit 5e4c40b8d74dea914e484c3ae77af4db67b66666
Author: Richard Knoll <knollr@chromium.org>
Date: Wed Dec 19 16:15:22 2018

feat: enable badge icons for non-android platforms

This enables the use of badge icons for new style notifications,
on platforms other than Android.

Largely based on https://crrev.com/c/684454

Bug:  768748 
Change-Id: I1935963ce2fda8b913079857714416fcfc726d1a
Reviewed-on: https://chromium-review.googlesource.com/c/1318977
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Richard Knoll <knollr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617847}
[modify] https://crrev.com/5e4c40b8d74dea914e484c3ae77af4db67b66666/chrome/browser/notifications/platform_notification_service_impl.cc
[modify] https://crrev.com/5e4c40b8d74dea914e484c3ae77af4db67b66666/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc
[modify] https://crrev.com/5e4c40b8d74dea914e484c3ae77af4db67b66666/ui/message_center/views/notification_view_md.cc

Status: Fixed (was: Started)
This is now available for non Android platforms :-)
Screenshot from 2018-12-19 16-23-17.png
8.7 KB View Download

Sign in to add a comment