[Devtools] Show contrast UI for gradients. [chromium/src : master]

0 views
Skip to first unread message

Alice Boxhall (Gerrit)

unread,
Aug 18, 2017, 3:14:17 AM8/18/17
to apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, Dmitry Gozman, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

This change is ready for review.

View Change

    To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
    Gerrit-Change-Number: 620608
    Gerrit-PatchSet: 2
    Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
    Gerrit-CC: Pavel Feldman <pfel...@chromium.org>
    Gerrit-Comment-Date: Fri, 18 Aug 2017 07:14:10 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Dmitry Gozman (Gerrit)

    unread,
    Aug 18, 2017, 2:47:45 PM8/18/17
    to Alice Boxhall, apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

    lgtm with comments

    Patch set 2:Code-Review +1

    View Change

    2 comments:

    To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
    Gerrit-Change-Number: 620608
    Gerrit-PatchSet: 2
    Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
    Gerrit-CC: Pavel Feldman <pfel...@chromium.org>
    Gerrit-Comment-Date: Fri, 18 Aug 2017 18:47:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: Yes

    Alice Boxhall (Gerrit)

    unread,
    Aug 18, 2017, 4:31:03 PM8/18/17
    to apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, Dmitry Gozman, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

    View Change

    2 comments:

      • Will remove.

      • Why do you store this as a string as opposite to Common. […]

        Because all I want to do with it is compare for exact equality on line 358.

    To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
    Gerrit-Change-Number: 620608
    Gerrit-PatchSet: 2
    Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
    Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
    Gerrit-CC: Pavel Feldman <pfel...@chromium.org>
    Gerrit-Comment-Date: Fri, 18 Aug 2017 20:30:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-HasLabels: No

    Alice Boxhall (Gerrit)

    unread,
    Aug 18, 2017, 6:02:10 PM8/18/17
    to apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, Dmitry Gozman, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

    Patch set 3:Commit-Queue +2

    View Change

      To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
      Gerrit-Change-Number: 620608
      Gerrit-PatchSet: 3
      Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
      Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
      Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
      Gerrit-CC: Pavel Feldman <pfel...@chromium.org>
      Gerrit-Comment-Date: Fri, 18 Aug 2017 22:02:05 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: Yes

      Commit Bot (Gerrit)

      unread,
      Aug 18, 2017, 6:02:44 PM8/18/17
      to Alice Boxhall, apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, Dmitry Gozman, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

      CQ is trying da patch.

      Note: The patchset sent to CQ was uploaded after this CL was approved.
      "No need to check for this gradient in updateContrastRatio" https://chromium-review.googlesource.com/c/620608/3

      Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/620608/3

      Bot data: {"action": "start", "triggered_at": "2017-08-18T22:02:05.0Z", "cq_cfg_revision": "5668c9aae8391d95373bdc16d23f5833b4e5ff37", "revision": "5a8c998f2f04a386f4517c44c918cc64540a1538"}

      View Change

        To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
        Gerrit-Change-Number: 620608
        Gerrit-PatchSet: 3
        Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
        Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
        Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
        Gerrit-CC: Commit Bot <commi...@chromium.org>
        Gerrit-CC: Pavel Feldman <pfel...@chromium.org>
        Gerrit-Comment-Date: Fri, 18 Aug 2017 22:02:41 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Commit Bot (Gerrit)

        unread,
        Aug 18, 2017, 8:18:52 PM8/18/17
        to Alice Boxhall, apavlo...@chromium.org, blink-...@chromium.org, caseq...@chromium.org, kozyatins...@chromium.org, lushnik...@chromium.org, pfeldma...@chromium.org, Dmitry Gozman, chromium...@chromium.org, devtools...@chromium.org, Pavel Feldman

        Commit Bot merged this change.

        View Change

        Approvals: Dmitry Gozman: Looks good to me Alice Boxhall: Commit
        [Devtools] Show contrast UI for gradients.

        - Choose the gradient stop closest in color to the text to measure contrast against.
        - Show a swatch of the full gradient in the color swatch.
        - Users can use the background color picker to choose a representative color from the page.

        (Screenshot in bug. https://uigradients.com/ makes a good test page.)

        Bug: 514674
        Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
        Reviewed-on: https://chromium-review.googlesource.com/620608
        Commit-Queue: Alice Boxhall <abox...@chromium.org>
        Reviewed-by: Dmitry Gozman <dgo...@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#495760}
        ---
        M third_party/WebKit/Source/devtools/front_end/color_picker/Contrast.js
        M third_party/WebKit/Source/devtools/front_end/color_picker/Spectrum.js
        M third_party/WebKit/Source/devtools/front_end/color_picker/spectrum.css
        3 files changed, 121 insertions(+), 37 deletions(-)


        To view, visit change 620608. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: merged
        Gerrit-Change-Id: I4571b690f5ecc74ce473eb2c120fac9d4717a080
        Gerrit-Change-Number: 620608
        Gerrit-PatchSet: 4
        Gerrit-Owner: Alice Boxhall <abox...@chromium.org>
        Gerrit-Reviewer: Alice Boxhall <abox...@chromium.org>
        Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
        Gerrit-Reviewer: Dmitry Gozman <dgo...@chromium.org>
        Reply all
        Reply to author
        Forward
        0 new messages