commit | 0a13421c6aef4001ab90c7b2a2d8f790f9dc0cb7 | [log] [tgz] |
---|---|---|
author | Sanket Joshi <sajos@microsoft.com> | Wed Jul 31 21:38:33 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 31 21:38:33 2019 |
tree | 6afb0ecfa4461be97aebb7e67049e25fa9a3c024 | |
parent | 50e50da0f02d94401dfda90d9d78c5fc2152dd78 [diff] |
Add support for the RGB color format to the new color picker. Prior to this CL, the new color picker only supported the HEX color format. Now, users can also view and/or manually change the selected color in the RGB color format. Users can switch between the HEX and RGB formats by clicking on the format toggler, and if the user changes the color value in one format, the color value for the other format also needs to be updated. To make it easier to translate values from one format to another, helper functions like hexToRGB and rgbToHex are being added to the Color class. Bug: 982087 Change-Id: Id6926f25cc01a94044be7f0d4ed876451c3e9719 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717188 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Mason Freed <masonfreed@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Sanket Joshi <sajos@microsoft.com> Cr-Commit-Position: refs/heads/master@{#682933}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .