mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
Get tokens from current or first token set
This commit is contained in:
parent
ead8a983ab
commit
eaf568f154
1 changed files with 6 additions and 4 deletions
|
@ -14,6 +14,7 @@
|
||||||
[app.common.types.shape.layout :as ctl]
|
[app.common.types.shape.layout :as ctl]
|
||||||
[app.main.data.workspace.state-helpers :as wsh]
|
[app.main.data.workspace.state-helpers :as wsh]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
[app.main.ui.workspace.tokens.token-set :as wtts]
|
||||||
[okulary.core :as l]))
|
[okulary.core :as l]))
|
||||||
|
|
||||||
;; ---- Global refs
|
;; ---- Global refs
|
||||||
|
@ -234,9 +235,10 @@
|
||||||
(l/derived :workspace-data st/state))
|
(l/derived :workspace-data st/state))
|
||||||
|
|
||||||
(def workspace-tokens
|
(def workspace-tokens
|
||||||
(l/derived (fn [data]
|
(l/derived
|
||||||
(get data :tokens {}))
|
(fn [data]
|
||||||
workspace-data
|
(or (wtts/get-selected-token-set-tokens data) {}))
|
||||||
|
st/state
|
||||||
=))
|
=))
|
||||||
|
|
||||||
(def workspace-file-colors
|
(def workspace-file-colors
|
||||||
|
|
Loading…
Reference in a new issue