theme moved to plugin

This commit is contained in:
Jan Prochazka
2021-02-26 16:52:22 +01:00
parent 8a0d10e50d
commit a101f21483
9 changed files with 136 additions and 108 deletions

View File

@@ -0,0 +1,11 @@
import * as light from './ThemeLight.svelte';
import * as dark from './ThemeDark.svelte';
export function buildThemes(plugins) {
const res = [light, dark];
for (const { content } of plugins) {
const { themes } = content;
if (themes) res.push(...themes);
}
return res;
}