commit | 4cb0d2a445bdc143256a21862daab0fa4ab6f6cd | [log] [tgz] |
---|---|---|
author | Sanket Joshi <sajos@microsoft.com> | Mon Aug 05 17:53:00 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Aug 05 17:53:00 2019 |
tree | 179760405df4389e8dd6e1164f1095a8ddd346e4 | |
parent | e3d16e3d0e31854dff4a16178889d0126222d9b4 [diff] |
Add support for the HSL color format to the new color picker. Prior to this CL, the new color picker supported the HEX and RGB color formats. Now, users can also view and/or manually change the selected color in the HSL color format. Users can switch between the HEX, RGB and HSL by clicking on the format toggler. To make it easier to translate values from one format to another, additional helper functions like rgbToHSL and hslToHex are being added to the Color class. Update hex format toggle test and add hsl format toggle test. Change-Id: I7a215af1788018c5a895b76c71a02c9aeeb987bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1731777 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@{#684033}
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 .