mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 11:56:39 +02:00
🐛 Allow use library colors when defining gradients
This commit is contained in:
parent
dff067c1a7
commit
2cea7405b5
2 changed files with 7 additions and 2 deletions
|
@ -164,8 +164,12 @@
|
|||
|
||||
on-select-library-color
|
||||
(fn [color]
|
||||
(reset! state (data->state color))
|
||||
(on-change color))
|
||||
(let [editing-stop (:editing-stop @state)
|
||||
is-gradient? (some? (:gradient color))]
|
||||
(if (and (some? editing-stop) (not is-gradient?))
|
||||
(handle-change-color (color->components (:color color) (:opacity color)))
|
||||
(do (reset! state (data->state color))
|
||||
(on-change color)))))
|
||||
|
||||
on-add-library-color
|
||||
(fn [color]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue