mirror of https://github.com/msgbyte/tailchat
feat: 增加原神胡桃主题
parent
b6b5bb89b3
commit
da73f5538c
@ -0,0 +1,9 @@
|
||||
{
|
||||
"label": "原神主题",
|
||||
"name": "com.msgbyte.theme.genshin",
|
||||
"url": "/plugins/com.msgbyte.theme.genshin/index.js",
|
||||
"version": "0.0.0",
|
||||
"author": "msgbyte",
|
||||
"description": "原神主题",
|
||||
"requireRestart": true
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@plugins/com.msgbyte.theme.genshin",
|
||||
"main": "src/index.ts",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 518 KiB |
Binary file not shown.
After Width: | Height: | Size: 431 KiB |
@ -0,0 +1,57 @@
|
||||
#tailchat-app.theme-genshin-hutao {
|
||||
@primary-color: #dd5545;
|
||||
|
||||
--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: url(./avatar.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: right bottom;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
import { regPluginColorScheme } from '@capital/common';
|
||||
|
||||
regPluginColorScheme({
|
||||
label: '原神-胡桃',
|
||||
name: 'light+genshin-hutao',
|
||||
});
|
||||
|
||||
/**
|
||||
* 异步加载以防止入口文件过大阻塞主应用加载(因为有图片)
|
||||
*/
|
||||
import('./hutao/theme.less');
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react",
|
||||
"paths": {
|
||||
"@capital/*": ["../../../src/plugin/*"],
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
declare module '*.less';
|
@ -0,0 +1,4 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
Loading…
Reference in New Issue