From 60f34b939d8292a3659632d375eabd2e527fa560 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 5 Dec 2020 18:30:37 +0100 Subject: [PATCH] inspector: display color picked values with css rgba notation instead of hexadecimal --- CHANGELOG.md | 5 +++++ src/client/ui/ui-colorpicker.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a96e6c17..b344289f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## next + +- editor + - display color picked values with css rgba notation instead of hexadecimal + ## 1.7.5 - bug fixes diff --git a/src/client/ui/ui-colorpicker.js b/src/client/ui/ui-colorpicker.js index dc7b3576..8d962438 100644 --- a/src/client/ui/ui-colorpicker.js +++ b/src/client/ui/ui-colorpicker.js @@ -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()