mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🎉 Color picker integration with library
This commit is contained in:
parent
12a2b35b28
commit
ab7fee50ea
9 changed files with 313 additions and 146 deletions
|
@ -99,6 +99,12 @@
|
|||
(get-in file [:data :colors])))
|
||||
st/state))
|
||||
|
||||
(def workspace-recent-colors
|
||||
(l/derived (fn [state]
|
||||
(when-let [file (:workspace-file state)]
|
||||
(get-in file [:data :recent-colors])))
|
||||
st/state))
|
||||
|
||||
(def workspace-project
|
||||
(l/derived :workspace-project st/state))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue