🐛 Fix opacity in color picker

This commit is contained in:
Eva 2022-09-20 15:42:57 +02:00 committed by Alejandro Alonso
parent bea96cb586
commit f444d3d01d

View file

@ -67,7 +67,7 @@
(mf/use-fn (mf/use-fn
(mf/deps @drag?) (mf/deps @drag?)
(fn [color] (fn [color]
(let [recent-color (merge color) (let [recent-color (merge current-color color)
recent-color (dc/materialize-color-components recent-color)] recent-color (dc/materialize-color-components recent-color)]
(when (not @drag?) (when (not @drag?)
(st/emit! (dwl/add-recent-color recent-color))) (st/emit! (dwl/add-recent-color recent-color)))