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:
parent
ccce550cda
commit
2cd0bc565d
1 changed files with 4 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue