mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Allow use library colors when defining gradients
This commit is contained in:
parent
dff067c1a7
commit
2cea7405b5
2 changed files with 7 additions and 2 deletions
|
@ -35,6 +35,7 @@
|
|||
- Fix problem when opening the context menu in dashboard at the bottom [#856](https://github.com/penpot/penpot/issues/856)
|
||||
- Fix visual problem with group invite [Taiga #1290](https://tree.taiga.io/project/penpot/issue/1290)
|
||||
- Fix issues with promote owner panel [Taiga #763](https://tree.taiga.io/project/penpot/issue/763)
|
||||
- Allow use library colors when defining gradients [Taiga #1614](https://tree.taiga.io/project/penpot/issue/1614)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
|
||||
|
|
|
@ -164,8 +164,12 @@
|
|||
|
||||
on-select-library-color
|
||||
(fn [color]
|
||||
(reset! state (data->state color))
|
||||
(on-change color))
|
||||
(let [editing-stop (:editing-stop @state)
|
||||
is-gradient? (some? (:gradient color))]
|
||||
(if (and (some? editing-stop) (not is-gradient?))
|
||||
(handle-change-color (color->components (:color color) (:opacity color)))
|
||||
(do (reset! state (data->state color))
|
||||
(on-change color)))))
|
||||
|
||||
on-add-library-color
|
||||
(fn [color]
|
||||
|
|
Loading…
Add table
Reference in a new issue