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:
Yue Yang
2022-03-25 13:14:52 +08:00
committed by GitHub
parent 5997155d15
commit 1987d7dc79
8 changed files with 32 additions and 28 deletions

View File

@@ -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