refactor webui dashboard layout
This commit is contained in:
1 parent
5a51c951a2
commit
eea0c48a44
12 files changed
+3266
-869
No files matched your search
@@ -0,0 +1,13 @@
|
||||
(function () {
|
||||
try {
|
||||
var saved = localStorage.getItem("ui-theme");
|
||||
var theme =
|
||||
saved === "dark" || saved === "light"
|
||||
? saved
|
||||
: window.matchMedia &&
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
? "dark"
|
||||
: "light";
|
||||
document.documentElement.setAttribute("data-theme", theme);
|
||||
} catch (e) {}
|
||||
})();
|
||||
Reference in new issue
Block a user