Linear color fix

This commit is contained in:
barsdeveloper
2022-09-07 22:17:14 +02:00
parent 610d6cfdd2
commit 9d424809c9
15 changed files with 88 additions and 63 deletions

View File

@@ -40,7 +40,12 @@ export default class LinearColorPinTemplate extends IInputPinTemplate {
renderInput(pin) {
if (pin.isInput()) {
return html`
<span class="ueb-pin-input" data-linear-color="${pin.defaultValue.toString()}"></span>
<span
class="ueb-pin-input"
data-linear-color="${pin.defaultValue.toString()}"
style="--ueb-linear-color:rgba(${pin.defaultValue.toString()})"
>
</span>
`
}
return super.renderInput(pin)