ui: add --color-ui-button variable, adapt modal's theme, show prop name in color picker

This commit is contained in:
bordun 2020-05-14 10:08:23 +02:00
parent 9d477f1259
commit 742d3dafa8
7 changed files with 46 additions and 30 deletions

View file

@ -58,11 +58,13 @@ class ColorPicker extends UiWidget {
// })
this.opened = 0
this.label = DOM.get(this.modal.container, '.title')[0]
}
open() {
this.label.innerHTML = this.name
this.modal.open()
resize.check(this.rgb.container)
this.opened = 1