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
div.x-form-element[style='padding-left: 42px;'] {
margin: 3px 0!important;
}
this.menus[1].addClass('clpickermenu'); ,onTrigger2Click : function(){
if(this.disabled){
return;
}
this.menus[1].addClass('clpickermenu');//added by Bruno
this.menus[1].show(this.el, "tl-bl?");
if (this.picker==1) {
this.menus[1].picker.setColor(this.getValue());
}
}
you can add this line in /assets/components/colorpicker/sources/ColorPicker.js
this.menus[1].addClass('clpickermenu');
to onTrigger2Click
,onTrigger2Click : function(){ if(this.disabled){ return; } this.menus[1].addClass('clpickermenu');//added by Bruno this.menus[1].show(this.el, "tl-bl?"); if (this.picker==1) { this.menus[1].picker.setColor(this.getValue()); } }
[Edit]
with your CSS I can no longer click my tabs ’Page Settings’ ’Template Variables’ ’Access Permissions’ in Chrome
.x-panel-body {
height: auto!important;
}
li.x-menu-list-item[style='width: 326px; height: 189px;'] {
height: 193px!important;
}
/*
form.x-panel-body.x-form[style='width: 110px; height: 182px;'] {
height: 182px!important;
width: 107px!important;
position: relative;
}
*/
table.x-btn.x-btn-noicon[style='width: 108px; margin-top: 2px;'] {
}
/* Container arround websafe/invers button und preview field */
div.x-panel-body.x-panel-body-noheader.x-table-layout-ct[style='width: 107px; height: 44px;'] {
height: 60px!important;
}
/*
div.x-form-element[style='padding-left: 15px;'] {
margin-bottom: 2px!important;
}
label.x-form-item-label[style='width: 10px;'] {
margin-right: 5px!important;
}
input.x-form-text.x-form-field.x-form-num-field[style='width: 28px;'] {
width: 33px!important;
}
*/
/*Container for all items below rgb hsa value fieldset *//*
div.x-panel-body.x-panel-body-noheader[style='width: 110px;'] {
height: 113px!important;
}
div.x-panel-body.x-panel-body-noheader[style='width: 110px;'] div.x-form-element[style='padding-left: 42px;'] {
margin-bottom: 5px!important;
}
*/
/* Container arround HTML Hexvalues *//*
div.x-form-element[style='padding-left: 42px;'] {
margin: 3px 0!important;
}
*/
/* Container arround websafe/invers button und preview field *//*
div.x-panel-body.x-panel-body-noheader.x-table-layout-ct[style='width: 107px; height: 44px;'] {
height: 60px!important;
}
*/
table.x-btn.x-btn-icon {
margin-bottom: 2px!important;
margin-right: -3px!important;
}
Exactly what I needed right now.But I can only agree with Mark: It should definitely be available as an automatically installable package.