[CrOS Tether] Add the ability for VectorIcons to adjust opacity.
Previously, it was possible specify an ARGB value via the PATH_COLOR_ARGB command, which takes an alpha as well as RGB properties as parameters. However, there was no command to specify a change in opacity without also specifying the color to use. This presented a problem for system notification. When displayed on a notification, these icons are drawn in blue or red, depending on the warning level of the notification, and when displayed in the black bar at the bottom of the UI, they are drawn in white. Thus, for notification icons which need to be displayed in a single color with different opacities, a new command was needed. This CL introduces the PATH_COLOR_ALPHA command, which takes a single parameter expressing the opacity of the path. It will be used immediately in a follow-up CL: https://chromium-review.googlesource.com/c/chromium/src/+/685304 Bug: 759257, 672263 Change-Id: I00a5dbb28a06de41239cda2fe1c608754f190bf6 Reviewed-on: https://chromium-review.googlesource.com/690706Reviewed-by:Evan Stade <estade@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#505404}
Showing
Please register or sign in to comment