Files
HGhub-MacOS-iOS-Version/src-tauri/tauri.macos.conf.json
T
kkylin-si 39ce410a1d fix: center macOS window controls from measured metrics
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.
2026-11-08 10:40:12 -08:00

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"]
}
}