mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 23:51:37 +02:00
✨ Synchronize gradient colors libraries
This commit is contained in:
parent
567e177699
commit
9b2b16c066
11 changed files with 68 additions and 59 deletions
|
@ -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))}}])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue