mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-20 15:11:14 +00:00
Add System Theme option to config register
This commit is contained in:
parent
3629e883a5
commit
80b4d68835
2 changed files with 4 additions and 1 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
|
|
@ -600,7 +600,7 @@ Dribbblish.on("ready", () => {
|
|||
Dribbblish.config.register({
|
||||
area: "Theme",
|
||||
type: "select",
|
||||
data: { dark: "Dark", light: "Light", time: "Based on Time" },
|
||||
data: { dark: "Dark", light: "Light", time: "Based on Time", system: "Based on System Theme" },
|
||||
order: -1,
|
||||
key: "theme",
|
||||
name: "Theme",
|
||||
|
|
@ -621,6 +621,9 @@ Dribbblish.on("ready", () => {
|
|||
case "time":
|
||||
checkDarkLightMode();
|
||||
break;
|
||||
case "system":
|
||||
checkDarkLightMode();
|
||||
break;
|
||||
}
|
||||
},
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue