Skip to content

Commit

Permalink
fix: load legacy theme
Browse files Browse the repository at this point in the history
Signed-off-by: Yue Yang <[email protected]>
  • Loading branch information
g1eny0ung authored and tiensonqin committed May 19, 2022
1 parent 1d9da5c commit 29eb3db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/frontend/ui.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,10 @@

(defn apply-custom-theme-effect! [theme]
(when-let [custom-theme (state/sub [:ui/custom-theme (keyword theme)])]
(js/LSPluginCore.selectTheme (bean/->js custom-theme)
(bean/->js {:effect false :emit false}))
(state/set-state! :plugin/selected-theme (:url custom-theme))))
(when-let [url (:url custom-theme)]
(js/LSPluginCore.selectTheme (bean/->js custom-theme)
(bean/->js {:effect false :emit false}))
(state/set-state! :plugin/selected-theme (:url url)))))

(defn setup-system-theme-effect!
[]
Expand Down

0 comments on commit 29eb3db

Please sign in to comment.