Quote from: Bruno17 at Jan 03, 2011, 01:53 PM
Here is it.
Has some CSS-issues, but seems to work.
upload all files.
create plugin with content of /core/components/colorpicker/elements/plugins/colorpickercustomtv.plugin.php
check:
OnTVInputRenderList
OnDocFormPrerender
This is AWESOME!
Thanks Bruno17.
After a quick glance at your code, I realized that my own humble affords would never haven been successful. Cudos!
Regarding the CSS...
ARGGGGHHHH!!!
ExtJS creates about 270 lines of nested code for a stupid color picker. There are tables all over the place and css rules for a single element come in insane numbers (not to mention an incredible amount of inline css).
I’ve tried a few things that make things better, but the results are not really to my satisfaction.
Attached you will find a new colorpicker.css.
Copy it to assets/components/colorpicker/resources and you will at least be able to use the TV as intended.
Note: This looks still very ugly from both sides. I checked it in Firefox. Chrome looks a bit odd. I didn’t dare to check Opera and IE.
Also, I had to use lots of !important styles and other creepy stuff to make it work.
div.x-form-element[style='padding-left: 42px;'] {
margin: 3px 0!important;
}
It would make things much easier to have a "colorPicker" class or something like that around the whole monster. Can you do that?
Regards,
pepebe