mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 19:11:39 +02:00
Remove hidden token theme when activating a theme
This commit is contained in:
parent
0ea0834b1a
commit
c5173d2df8
1 changed files with 4 additions and 1 deletions
|
@ -125,8 +125,11 @@
|
||||||
active-token-themes (some-> tokens-lib
|
active-token-themes (some-> tokens-lib
|
||||||
(ctob/toggle-theme-active? group name)
|
(ctob/toggle-theme-active? group name)
|
||||||
(ctob/get-active-theme-paths))
|
(ctob/get-active-theme-paths))
|
||||||
|
active-token-themes' (if (= active-token-themes #{ctob/hidden-token-theme-path})
|
||||||
|
active-token-themes
|
||||||
|
(disj active-token-themes ctob/hidden-token-theme-path))
|
||||||
changes (-> (pcb/empty-changes it)
|
changes (-> (pcb/empty-changes it)
|
||||||
(pcb/update-active-token-themes active-token-themes prev-active-token-themes))]
|
(pcb/update-active-token-themes active-token-themes' prev-active-token-themes))]
|
||||||
(rx/of
|
(rx/of
|
||||||
(dch/commit-changes changes)
|
(dch/commit-changes changes)
|
||||||
(wtu/update-workspace-tokens))))))
|
(wtu/update-workspace-tokens))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue