mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
feat: merge a new light theme
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
(rum/defc container
|
||||
[{:keys [theme on-click] :as props} child]
|
||||
(rum/use-effect! #(-> js/document.documentElement
|
||||
(.setAttribute "data-theme" theme))
|
||||
(.setAttribute "data-theme" (if (= theme "white") "light" theme)))
|
||||
[theme])
|
||||
[:div
|
||||
{:class (str theme "-theme")
|
||||
|
||||
Reference in New Issue
Block a user