mirror of
https://github.com/penpot/penpot.git
synced 2025-02-18 21:06:11 -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
|
;; color
|
||||||
attrs (cond-> attrs
|
attrs (cond-> attrs
|
||||||
(:gradient attrs) (get-in [:gradient :stops 0]))
|
(: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))))))))
|
(assoc-in shape [:shadow index :color] new-attrs))))))))
|
||||||
|
|
||||||
(defn add-shadow
|
(defn add-shadow
|
||||||
|
@ -602,7 +603,8 @@
|
||||||
(merge data)
|
(merge data)
|
||||||
(materialize-color-components))))
|
(materialize-color-components))))
|
||||||
(-> state
|
(-> state
|
||||||
(dissoc :gradient :stops :editing-stop)))))))
|
(dissoc :gradient :stops :editing-stop)
|
||||||
|
(assoc :type :color)))))))
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(when add-recent?
|
(when add-recent?
|
||||||
|
|
Loading…
Add table
Reference in a new issue