mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-06 19:51:27 +00:00
Actually read theme from config
This commit is contained in:
parent
5d5d1bc3c1
commit
eb87c41128
1 changed files with 1 additions and 0 deletions
|
|
@ -518,6 +518,7 @@ Dribbblish.on("ready", () => {
|
||||||
setInterval(checkDarkLightMode, 60000);
|
setInterval(checkDarkLightMode, 60000);
|
||||||
|
|
||||||
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", e => {
|
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", e => {
|
||||||
|
const theme = Dribbblish.config.get("theme");
|
||||||
if (theme === "system") toggleDark(e.matches);
|
if (theme === "system") toggleDark(e.matches);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue