Thanks for the mention, and the links. Any idea on how long until
this gets into a nightly build?
On Tue, Oct 11, 2011 at 11:45 PM, Brian Grinstead
<briangr...@gmail.com> wrote:
> I couldn't really figure out how to bundle the colorpicker as an
> extension (I went through the docs here:
> http://code.google.com/chrome/extensions/experimental.devtools.panels.html,
> but the callback seems to expect a JSON like object to create a tree,
> not arbitrary HTML).
Just for the record, extension sidebars support two types of content,
JSON objects that are formatted with the help of inspector's usual
object properties section and HTML pages that are shown in an iframe
(check out the setPage() method:
http://code.google.com/chrome/extensions/dev/experimental.devtools.panels.html#type-ExtensionSidebarPane
and the second example at the top of the page).
That said, it still offers somewhat limited degree of integration, as
you won't be able to interact with the style or DOM editor -- so I
think that for the decent user experience, we ultimately need the
color picker to be a part of the core DevTools.
Best regards,
Andrey.
Alexander - Yes, the alpha could be supported very easily. It
basically spits out an HSV that can be augmented with alpha values.
In fact, this is almost exactly what I did in the 10K Apart contest
entry here: http://briangrinstead.com/colorstash/. Would just need to
move the input type="range" into the colorpicker UI. Maybe it could
look something like this? http://jsfiddle.net/bgrins/ge7QS/
Regards
Pavel