This commit is contained in:
2026-04-25 16:36:34 +08:00
commit db90e7579b
1876 changed files with 189777 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
{
"label": "Hatsune Miku Theme",
"label.zh-CN": "Miku初音未来主题",
"name": "com.msgbyte.theme.miku",
"url": "/plugins/com.msgbyte.theme.miku/index.js",
"version": "0.0.0",
"author": "msgbyte",
"description": "Hatsune Miku theme, supports light and dark colors",
"description.zh-CN": "初音未来主题,支持亮色与暗色",
"requireRestart": false
}

View File

@@ -0,0 +1,7 @@
{
"name": "@plugins/com.msgbyte.theme.miku",
"main": "src/index.ts",
"version": "0.0.0",
"private": true,
"dependencies": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 KiB

View File

@@ -0,0 +1,21 @@
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');
}
});

View File

@@ -0,0 +1,57 @@
#tailchat-app.theme-miku {
@primary-color: #39C5BB;
--tc-primary-color: @primary-color;
--tc-background-image: url(./bg.jpg);
.bg-navbar-light {
background-color: @primary-color;
.bg-gray-400 {
background-color: darken(@primary-color, 10%);
}
}
.bg-sidebar-light {
background-color: lighten(@primary-color, 20%);
}
.bg-content-light {
background-color: lighten(@primary-color, 40%);
}
[data-tc-role^=content-] {
position: relative;
&::before {
content: '';
position: absolute;
display: block;
left: 0;
top: 0;
bottom: 0;
right: 0;
background-image: var(--tc-background-image);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
opacity: 0.15;
}
}
&.dark {
--tc-primary-color: darken(@primary-color, 10%);
.dark\:bg-navbar-dark {
background-color: darken(@primary-color, 40%);
}
.dark\:bg-sidebar-dark {
background-color: darken(@primary-color, 20%);
}
.dark\:bg-content-dark {
background-color: @primary-color;
}
}
}

View File

@@ -0,0 +1,9 @@
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react",
"paths": {
"@capital/*": ["../../src/plugin/*"],
}
}
}

View File

@@ -0,0 +1 @@
declare module '*.less';