支持 Trae 默认配置

This commit is contained in:
锦恢 2025-04-12 01:38:48 +08:00
parent be9fc5f2f9
commit b1515e9ac3
5 changed files with 18 additions and 6 deletions

View File

@ -20,4 +20,4 @@ Wait-Job -Job $jobs | Out-Null
Receive-Job -Job $jobs Receive-Job -Job $jobs
Remove-Job -Job $jobs Remove-Job -Job $jobs
Write-Host "构建完成dist文件已移动到resources目录" Write-Host "finish building services in ./resources"

View File

@ -4,4 +4,4 @@ mkdir -p ./resources
(cd ./renderer && npm run build && mv ./dist ../resources/renderer) & (cd ./renderer && npm run build && mv ./dist ../resources/renderer) &
(cd ./service && npm run build && mv ./dist ../resources/service) & (cd ./service && npm run build && mv ./dist ../resources/service) &
wait wait
echo "构建完成dist文件已移动到resources目录" echo "finish building services in ./resources"

View File

@ -13,7 +13,7 @@
/> />
</span> </span>
</span> </span>
<el-scrollbar height="350px"> <el-scrollbar height="300px">
<div <div
class="output-content" class="output-content"
contenteditable="false" contenteditable="false"

View File

@ -1,3 +1,5 @@
import { pinkLog } from "@/views/setting/util";
interface RgbColor { interface RgbColor {
r: number; r: number;
g: number; g: number;
@ -170,6 +172,14 @@ export class MacroColor {
} else { } else {
this.theme = 'light'; // 默认主题 this.theme = 'light'; // 默认主题
} }
// 额外支持 trae 的默认主题
const sidebarColorString = this.rootStyles.getPropertyValue('--sidebar');
if (sidebarColorString === backgroundColorString) {
const newSidebarColor = this.theme === 'dark' ? '#252a38' : '#edeff2';
document.documentElement.style.setProperty('--sidebar', newSidebarColor);
pinkLog('修改 sidebar 颜色为' + newSidebarColor);
}
} }
/** /**
@ -225,3 +235,5 @@ export class MacroColor {
return toRgbCssString(mixedColor); return toRgbCssString(mixedColor);
} }
} }
export const macroColor = new MacroColor();

View File

@ -1,12 +1,12 @@
{ {
"name": "openmcp-test-backend", "name": "openmcp-test-backend",
"version": "1.0.0", "version": "0.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "openmcp-test-backend", "name": "openmcp-test-backend",
"version": "1.0.0", "version": "0.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.8.0", "@modelcontextprotocol/sdk": "^1.8.0",