mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
@@ -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!
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user