Color picker improvements

This commit is contained in:
barsdeveloper
2022-10-16 13:56:38 +02:00
parent 0b19d89416
commit 192f2a4c11
23 changed files with 500 additions and 231 deletions

View File

@@ -31,7 +31,7 @@ export default class LinearColorPinTemplate extends IInputPinTemplate {
/** @param {LinearColorEntity} color */
setPinColor: color => this.element.setDefaultValue(color),
},
})
}),
]
}
@@ -47,7 +47,7 @@ export default class LinearColorPinTemplate extends IInputPinTemplate {
if (this.element.isInput()) {
return html`
<span class="ueb-pin-input" data-linear-color="${this.element.defaultValue.toString()}"
.style="--ueb-linear-color:rgba(${this.element.defaultValue.toString()})">
style="--ueb-linear-color:rgba(${this.element.defaultValue.toString()})">
</span>
`
}