Expose accent color interface through chrome.notifications |
||||||||
Issue descriptionIn new style notification, notification generated by system should have accent color. Some of these notifications (e.g. ChromeVox, FilesApp) are generated by JavaScript in terms of the implementation. Also, we may be able to expose the interface to third party extensions. It requires further discussion.
,
Aug 31 2017
,
Sep 1 2017
Our plan for Web Notifications is to use the site's theme colour from its manifest: https://w3c.github.io/manifest/#theme_color-member Do extensions have something similar? I'm not opposed to a member in either case, but extensions do generally care more about platform uniformity.
,
Sep 5 2017
,
Sep 25 2017
Sorry, I missed #3. It seems currently there's no equivalent of theme color web app manifest, but I think it also makes sense to have something similar in manifest.json and use it for notification accent color. Thanks!
,
Sep 25 2017
,
Nov 8 2017
,
Dec 1 2017
In playing with accent colours today for unrelated reasons (https://imgur.com/a/p2SmC), it struck me that the trickiest bit of exposing this ability in any way will be to ensure sufficient contrast. Material Design specified that a certain contrast ratio needs to be met: https://material.io/guidelines/usability/accessibility.html#accessibility-color-contrast Do we have any way in Chromium to ensure that the contrast ratio between the accent color and the view's background is sufficient? Android seems to implement this behaviour already, I get sensible results for really light colours when playing with Notification.Builder.setColor().
,
Dec 4 2017
> Do we have any way in Chromium to ensure that the contrast ratio between the accent color and the view's background is sufficient? https://cs.chromium.org/chromium/src/ui/gfx/color_utils.h?l=120&rcl=de6781cecdd5c31629bff92dd2874dae67025481 I this useful here?
,
Oct 22
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by tetsui@chromium.org
, Aug 1 2017