mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix change stroke color from library doesn't work
This commit is contained in:
parent
6fd30d50f4
commit
fa19ce2b5b
2 changed files with 4 additions and 3 deletions
|
@ -442,6 +442,7 @@
|
||||||
(declare activate-colorpicker-color)
|
(declare activate-colorpicker-color)
|
||||||
(declare activate-colorpicker-gradient)
|
(declare activate-colorpicker-gradient)
|
||||||
(declare activate-colorpicker-image)
|
(declare activate-colorpicker-image)
|
||||||
|
(declare update-colorpicker)
|
||||||
|
|
||||||
(defn apply-color-from-colorpicker
|
(defn apply-color-from-colorpicker
|
||||||
[color]
|
[color]
|
||||||
|
@ -453,8 +454,7 @@
|
||||||
(:image color) (activate-colorpicker-image)
|
(:image color) (activate-colorpicker-image)
|
||||||
(:color color) (activate-colorpicker-color)
|
(:color color) (activate-colorpicker-color)
|
||||||
(= :linear (get-in color [:gradient :type])) (activate-colorpicker-gradient :linear-gradient)
|
(= :linear (get-in color [:gradient :type])) (activate-colorpicker-gradient :linear-gradient)
|
||||||
(= :radial (get-in color [:gradient :type])) (activate-colorpicker-gradient :radial-gradient))
|
(= :radial (get-in color [:gradient :type])) (activate-colorpicker-gradient :radial-gradient))))))
|
||||||
(apply-color-from-palette color false)))))
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
|
@ -145,7 +145,8 @@
|
||||||
on-select-library-color
|
on-select-library-color
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(fn [_ color]
|
(fn [_ color]
|
||||||
(st/emit! (dc/apply-color-from-colorpicker color))))
|
(st/emit! (dc/apply-color-from-colorpicker color))
|
||||||
|
(on-change color)))
|
||||||
|
|
||||||
on-add-library-color
|
on-add-library-color
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
Loading…
Add table
Reference in a new issue