inspector: display color picked values with css rgba notation instead of hexadecimal

This commit is contained in:
bordun 2020-12-05 18:30:37 +01:00
parent 7a3180739b
commit 60f34b939d
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## next
- editor
- display color picked values with css rgba notation instead of hexadecimal
## 1.7.5
- bug fixes

View file

@ -81,14 +81,14 @@ class ColorPicker extends UiWidget {
apply() {
this.value = chroma(this.rgb.value).hex()
this.value = chroma(this.rgb.getValue(true)).css('rgba')
this.trigger('change')
}
confirm() {
this.value = chroma(this.rgb.value).hex()
this.value = chroma(this.rgb.getValue(true)).css('rgba')
this.trigger('change')
this.close()