less pips for faders & set custome color on root widget's root element to allow css overriding

This commit is contained in:
jean-emmanuel 2016-03-25 09:01:22 +01:00
parent 19f474ac69
commit 010fab2248
3 changed files with 8 additions and 8 deletions

View file

@ -145,13 +145,13 @@ module.exports.widgets = function(data,parent) {
</div>
`)
if (widgetData.color && widgetData.color!='auto') widgetContainer[0].style.setProperty('--color-accent',widgetData.color)
if (widgetData.label===false) widgetContainer.addClass('nolabel')
// create widget
var widgetInner = createWidget[widgetData.type](widgetData,widgetContainer)
if (widgetData.color && widgetData.color!='auto') widgetInner[0].style.setProperty('--color-accent',widgetData.color)
widgetContainer[0].appendChild(widgetInner[0])