mirror of
https://github.com/penpot/penpot.git
synced 2025-07-08 09:57:18 +02:00
Use currently active sets as sets for temporary theme
This commit is contained in:
parent
29a2478bb5
commit
5f6a76dfce
2 changed files with 16 additions and 7 deletions
|
@ -217,9 +217,13 @@
|
|||
(watch [it state _]
|
||||
(let [tokens-lib (get-tokens-lib state)
|
||||
prev-theme (ctob/get-theme tokens-lib ctob/hidden-token-theme-group ctob/hidden-token-theme-name)
|
||||
theme (-> (or prev-theme (ctob/make-token-theme
|
||||
:group ctob/hidden-token-theme-group
|
||||
:name ctob/hidden-token-theme-name))
|
||||
active-token-set-names (ctob/get-active-themes-set-names tokens-lib)
|
||||
theme (-> (or (some-> prev-theme
|
||||
(ctob/set-sets active-token-set-names))
|
||||
(ctob/make-token-theme
|
||||
:group ctob/hidden-token-theme-group
|
||||
:name ctob/hidden-token-theme-name
|
||||
:sets active-token-set-names))
|
||||
(ctob/toggle-set token-set-name))
|
||||
prev-active-token-themes (ctob/get-active-theme-paths tokens-lib)
|
||||
changes (-> (pcb/empty-changes it)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue