mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
BREAKING CHANGE: unify light mode identifier (#4652)
* chore: unify light mode identifier Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Co-authored-by: charlie <xyhp915@qq.com> Co-authored-by: Andelf <andelf@gmail.com>
This commit is contained in:
@@ -302,7 +302,7 @@
|
||||
(when-let [themes (get (group-by :pid (:plugin/installed-themes @state/state)) pid)]
|
||||
(when-let [theme (first themes)]
|
||||
(let [theme-mode (:mode theme)]
|
||||
(and theme-mode (state/set-theme! (if (= theme-mode "light") "white" theme-mode)))
|
||||
(and theme-mode (state/set-theme! theme-mode))
|
||||
(js/LSPluginCore.selectTheme (bean/->js theme))))))
|
||||
|
||||
(defn update-plugin-settings-state
|
||||
|
||||
Reference in New Issue
Block a user