diff --git a/src/main/window.ts b/src/main/window.ts index c545ca5c..d40f89ce 100644 --- a/src/main/window.ts +++ b/src/main/window.ts @@ -175,7 +175,7 @@ async function createWindowInternal(): Promise { titleBarOverlay: useWindowFrame ? false : { - height: 49 + height: 47 }, autoHideMenuBar: true, // Win 显式指定 icon,避免异常/恢复路径下任务栏与窗口图标依赖默认 exe diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 5baf6c8d..752f47a3 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -102,7 +102,7 @@ const App: React.FC = () => { const setTitlebar = useCallback((): void => { if (!useWindowFrame && platform !== 'darwin') { - const options = { height: 48 } as TitleBarOverlayOptions + const options = { height: 47 } as TitleBarOverlayOptions try { options.color = window.getComputedStyle(document.documentElement).backgroundColor options.symbolColor = window.getComputedStyle(document.documentElement).color