Use Chrome´s built-in color picker in my own extension.

780 views
Skip to first unread message

Alexander Behrens

unread,
Mar 23, 2015, 2:10:49 PM3/23/15
to google-chrome-...@googlegroups.com
Is there a way of using Chrome´s built-in color picker in my own extension?
If it is not, how can I rebuild that kind of feature? Is there a tutorial, api, anything?

Sandip Chitale

unread,
Mar 24, 2015, 11:25:17 AM3/24/15
to google-chrome-...@googlegroups.com
Look at:


the code for Color Picker used in Chrome devtools.

You may not be able to use it in your extension though. Only things possible to do in devtools extension are documented here::

Sandip Chitale

unread,
Mar 24, 2015, 11:32:22 AM3/24/15
to google-chrome-...@googlegroups.com
You can always hack the Chrome devtools ....see:

Alexander Behrens

unread,
Mar 26, 2015, 6:05:38 AM3/26/15
to google-chrome-...@googlegroups.com
Hey Sandip,

thanks for the reply. I was hoping the there was a simple API that I could utilize. I guess I have to find another way then.

Jason Laster

unread,
Mar 27, 2015, 12:19:33 PM3/27/15
to google-chrome-...@googlegroups.com
Alexander, Spectrum might be prime for a small extraction.

The two dependencies are VBox and Color. In the case of VBos, it would not be hard to stub and Color there are some useful utilities that you'd benefit from.

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/a95aa834-5ec9-4e99-8d50-829f64fb770c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

-- 
Jason Laster
Software Engineer
  Etsy  

Sandip Chitale

unread,
Mar 27, 2015, 5:37:45 PM3/27/15
to google-chrome-...@googlegroups.com
Original Spectrum color picker is here:



On Friday, March 27, 2015 at 9:19:33 AM UTC-7, Jason Laster wrote:
Alexander, Spectrum might be prime for a small extraction.

The two dependencies are VBox and Color. In the case of VBos, it would not be hard to stub and Color there are some useful utilities that you'd benefit from.
On Thu, Mar 26, 2015 at 6:05 AM, Alexander Behrens <alexander....@gmail.com> wrote:
Hey Sandip,

thanks for the reply. I was hoping the there was a simple API that I could utilize. I guess I have to find another way then.

Am Dienstag, 24. März 2015 16:32:22 UTC+1 schrieb Sandip Chitale:
You can always hack the Chrome devtools ....see:

https://twitter.com/paul_irish/status/561231560548941825

On Tuesday, March 24, 2015 at 8:25:17 AM UTC-7, Sandip Chitale wrote:
Look at:


the code for Color Picker used in Chrome devtools.

You may not be able to use it in your extension though. Only things possible to do in devtools extension are documented here::

https://developer.chrome.com/extensions/devtools

On Monday, March 23, 2015 at 11:10:49 AM UTC-7, Alexander Behrens wrote:
Is there a way of using Chrome´s built-in color picker in my own extension?
If it is not, how can I rebuild that kind of feature? Is there a tutorial, api, anything?

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages