enhance(client): update themes
This commit is contained in:
parent
e7f4ec72b4
commit
bbe4824955
5 changed files with 52 additions and 109 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { ref } from 'vue';
|
||||
import { globalEvents } from '@/events';
|
||||
import tinycolor from 'tinycolor2';
|
||||
import { globalEvents } from '@/events';
|
||||
|
||||
export type Theme = {
|
||||
id: string;
|
||||
|
|
@ -31,11 +31,11 @@ export const getBuiltinThemes = () => Promise.all(
|
|||
'd-astro',
|
||||
'd-future',
|
||||
'd-botanical',
|
||||
'd-lime-green',
|
||||
'd-orange-green',
|
||||
'd-cherry',
|
||||
'd-ice',
|
||||
'd-pumpkin',
|
||||
'd-black',
|
||||
].map(name => import(`../themes/${name}.json5`).then(({ default: _default }): Theme => _default))
|
||||
].map(name => import(`../themes/${name}.json5`).then(({ default: _default }): Theme => _default)),
|
||||
);
|
||||
|
||||
export const getBuiltinThemesRef = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue