Synchronize gradient colors libraries

This commit is contained in:
alonso.torres 2020-10-16 13:12:13 +02:00 committed by Hirunatan
parent 567e177699
commit 9b2b16c066
11 changed files with 68 additions and 59 deletions

View file

@ -19,7 +19,8 @@
;; No multiple selection
(let [color (if (string? color) {:color color :opacity 1} color)]
[:div.color-bullet {:on-click #(when on-click (on-click %))}
[:div.color-bullet {:class (when (:id color) "is-library-color")
:on-click #(when on-click (on-click %))}
(when (not (:gradient color))
[:div.color-bullet-left {:style {:background (uc/color->background (assoc color :opacity 1))}}])