支持 Trae 默认配置
This commit is contained in:
parent
be9fc5f2f9
commit
b1515e9ac3
@ -20,4 +20,4 @@ Wait-Job -Job $jobs | Out-Null
|
||||
Receive-Job -Job $jobs
|
||||
Remove-Job -Job $jobs
|
||||
|
||||
Write-Host "构建完成,dist文件已移动到resources目录"
|
||||
Write-Host "finish building services in ./resources"
|
||||
|
@ -4,4 +4,4 @@ mkdir -p ./resources
|
||||
(cd ./renderer && npm run build && mv ./dist ../resources/renderer) &
|
||||
(cd ./service && npm run build && mv ./dist ../resources/service) &
|
||||
wait
|
||||
echo "构建完成,dist文件已移动到resources目录"
|
||||
echo "finish building services in ./resources"
|
||||
|
@ -13,7 +13,7 @@
|
||||
/>
|
||||
</span>
|
||||
</span>
|
||||
<el-scrollbar height="350px">
|
||||
<el-scrollbar height="300px">
|
||||
<div
|
||||
class="output-content"
|
||||
contenteditable="false"
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { pinkLog } from "@/views/setting/util";
|
||||
|
||||
interface RgbColor {
|
||||
r: number;
|
||||
g: number;
|
||||
@ -170,6 +172,14 @@ export class MacroColor {
|
||||
} else {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
export const macroColor = new MacroColor();
|
4
service/package-lock.json
generated
4
service/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "openmcp-test-backend",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "openmcp-test-backend",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.8.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user