perf: theme (#157)

This commit is contained in:
一万
2021-12-21 22:06:09 +08:00
committed by GitHub
parent 7bcd8a800a
commit ee30cba471
6 changed files with 54 additions and 27 deletions

View File

@@ -17,7 +17,8 @@ export const injectResponsiveStorage = (app: App, config: ServerConfigs) => {
type: Object,
default: Storage.getData(undefined, "layout") ?? {
layout: config.Layout ?? "vertical",
theme: config.Theme ?? "default"
theme: config.Theme ?? "default",
darkMode: config.DarkMode ?? false
}
},
sets: {