Files
PANDA-JSR c460800532 feat: macOS 改用原生圆角与原生红绿灯
- tauri.conf.json: decorations=true + titleBarStyle=Overlay + transparent
  + hiddenTitle + trafficLightPosition,启用原生圆角/squircle 与原生红绿灯
- main.css: 移除 #root 的 CSS border-radius,避免圆弧覆盖原生连续曲率
- App.tsx: macOS 下隐藏自绘 Windows 风格三按钮
- ContentArea.tsx: 侧栏隐藏(沉浸/竖屏)时 header 左侧为红绿灯留白
- Sidebar.tsx: macOS 下 logo 区上内边距增大,避开红绿灯

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-05 16:16:28 +08:00

75 lines
1.5 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "SecScore",
"version": "1.0.0",
"identifier": "com.secscore.app",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"withGlobalTauri": true,
"macOSPrivateApi": true,
"windows": [
{
"title": "SecScore",
"width": 1180,
"height": 680,
"resizable": true,
"fullscreen": false,
"decorations": true,
"transparent": true,
"hiddenTitle": true,
"titleBarStyle": "Overlay",
"trafficLightPosition": { "x": 16, "y": 22 },
"center": true,
"minWidth": 360,
"minHeight": 640
}
],
"security": {
"csp": null,
"assetProtocol": {
"enable": true,
"scope": ["**"]
}
},
"trayIcon": {
"iconPath": "icons/icon.png",
"iconAsTemplate": true,
"menuOnLeftClick": false
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": ["icons/icon.png", "icons/icon.ico"],
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
},
"iOS": {
"minimumSystemVersion": "13.0"
},
"android": {
"minSdkVersion": 24
}
},
"plugins": {
"shell": {
"open": true
},
"deepLink": {
"domains": [
{
"host": "oauth",
"schemes": ["secscore"]
}
]
}
}
}