// WindowFrame:透明窗口的自绘 MacWindow 框(对齐原型 DesktopShared.MacWindow 规格)。 // 窗口须配 transparent + titleBarStyle Overlay + hiddenTitle + trafficLightPosition {18,18}; // 阴影用 macOS 原生(贴合内容圆角),窗口即卡片实际尺寸。设置 / 登录等窗口共用。 export function WindowFrame({ title, children }) { return (
{/* 自绘顶条:系统红绿灯悬浮左上,标题绝对居中(mac 原生习惯);整条可拖拽 */}
{title}
{children}
); }