0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

🐛 Fix change shadow color from selected colors

This commit is contained in:
Alejandro Alonso 2024-04-08 08:58:53 +02:00 committed by Alonso Torres
parent ccce550cda
commit 2cd0bc565d

View file

@ -273,7 +273,8 @@
;; color
attrs (cond-> attrs
(:gradient attrs) (get-in [:gradient :stops 0]))
new-attrs (merge (get-in shape [:shadow index :color]) attrs)]
new-attrs (-> (merge (get-in shape [:shadow index :color]) attrs)
(d/without-nils))]
(assoc-in shape [:shadow index :color] new-attrs))))))))
(defn add-shadow
@ -602,7 +603,8 @@
(merge data)
(materialize-color-components))))
(-> state
(dissoc :gradient :stops :editing-stop)))))))
(dissoc :gradient :stops :editing-stop)
(assoc :type :color)))))))
ptk/WatchEvent
(watch [_ state _]
(when add-recent?