Measure the system traffic light size and default offset with a hidden probe window, then derive trafficLightPosition.y so the buttons are vertically centered in the 44pt titlebar. The main window is now created in setup on macOS (create: false) so the computed position can be passed to the builder; the config value remains as a fallback.
26 lines
528 B
JSON
26 lines
528 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"create": false,
|
|
"title": "HGhub",
|
|
"width": 1200,
|
|
"height": 780,
|
|
"minWidth": 900,
|
|
"minHeight": 620,
|
|
"resizable": true,
|
|
"center": true,
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"trafficLightPosition": { "x": 14, "y": 24 }
|
|
}
|
|
]
|
|
},
|
|
"bundle": {
|
|
"targets": ["app", "dmg"]
|
|
}
|
|
}
|