fix: exclude divider height from title bar overlay (#2054)

This commit is contained in:
agoudbg
2026-08-05 00:28:53 +08:00
committed by GitHub
parent e9ef676d60
commit 6b56108ec4
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ async function createWindowInternal(): Promise<void> {
titleBarOverlay: useWindowFrame
? false
: {
height: 49
height: 47
},
autoHideMenuBar: true,
// Win 显式指定 icon避免异常/恢复路径下任务栏与窗口图标依赖默认 exe

View File

@@ -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