I am making a Firefox extension and would like to give my users more control over the look and feel of things. In my extension’s preference pane, I would like to achieve something close to this:-
CodeProject: Custom Color Dialog Box
I know I can achieve this by making lots of different divs for as many colours as possible and adding event listeners to see if the user has selected a colour, but that would be too much work and would likely consume too much time. I am wondering if there’s an easier way to do this since I guess there must have been someone who have done this before. (Through an XPCOM component maybe?)
Thank you in advance! =)
Perhaps some of these could work:
http://johndyer.name/post/2007/09/PhotoShop-like-JavaScript-Color-Picker.aspx
http://developer.yahoo.com/yui/colorpicker/
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/widget/tests/test_ColorPicker.html
http://moorainbow.woolly-sheep.net