[Webkit-unassigned] [Bug 71262] Web Inspector: Add colorpicker functionality to color swatches in Styles Sidebar

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 03:48:43 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=71262





--- Comment #44 from Alexander Pavlov (apavlov) <apavlov at chromium.org>  2012-02-10 03:48:42 PST ---
Runtime thoughts :)

First and foremost: the picker will be a magnitude more usable if clicking (mousedown) in the two colored areas will move the dragger/slider to the click point, like the alpha slider (<input type="range">) does.

This style can make the dragger look a lot better in dark areas of the spectrum:
.spectrum-dragger {
  border-radius: 5px;
  height: 5px;
  width: 5px;
  border: 1px solid white;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  background: black;
}

Also "-webkit-user-select: none" would be useful on "spectrum-container", since click-dragging the alpha slider may inadvertently result in selecting the "alpha: " label (or some other text nearby) if you miss the slider active area (which was the case with me.)

The strings "alpha: ", "color: ", and "Click to open a colorpicker" are not present in localizedStrings.js (this file is considered binary by the VCS's, so you will need to manually re-add them every time it changes in the HEAD).

It would be awesome if there were a way to cancel the colorpicking. Also, Pavel might have some concerns regarding the compatibility with his recent Undo feature (at the very least, we can deal with it in a subsequent patch.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list