mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
🐛 Fix change shadow color from selected colors
This commit is contained in:
committed by
Alonso Torres
parent
ccce550cda
commit
2cd0bc565d
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user