mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 19:01:38 +02:00
🐛 Fix picking a gradient color in recent colors for a new color in the assets tab
This commit is contained in:
parent
51462ba476
commit
7d7b4074b2
2 changed files with 3 additions and 1 deletions
|
@ -520,7 +520,8 @@
|
|||
stops (mapv split-color-components (:stops gradient))
|
||||
type (case (:type gradient)
|
||||
:linear :linear-gradient
|
||||
:radial :radial-gradient)]
|
||||
:radial :radial-gradient
|
||||
(:type state))]
|
||||
(-> state
|
||||
(assoc :type type)
|
||||
(assoc :current-color (nth stops stop))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue