mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
538 B
TypeScript
22 lines
538 B
TypeScript
import { regPluginColorScheme, sharedEvent } from '@capital/common';
|
|
|
|
regPluginColorScheme({
|
|
label: 'Miku 葱',
|
|
name: 'light+miku',
|
|
});
|
|
|
|
regPluginColorScheme({
|
|
label: 'Miku 葱(夜间模式)',
|
|
name: 'dark+miku',
|
|
});
|
|
|
|
/**
|
|
* 异步加载以防止入口文件过大阻塞主应用加载(因为有图片)
|
|
*/
|
|
sharedEvent.on('loadColorScheme', (colorSchemeName) => {
|
|
if (colorSchemeName === 'light+miku' || colorSchemeName === 'dark+miku') {
|
|
console.log('正在加载初音未来主题...');
|
|
import('./theme.less');
|
|
}
|
|
});
|