Files
dbgate/packages/web/src/plugins/themes.js
2021-02-26 16:52:22 +01:00

12 lines
287 B
JavaScript

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;
}