mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: exclude divider height from title bar overlay (#2054)
This commit is contained in:
@@ -175,7 +175,7 @@ async function createWindowInternal(): Promise<void> {
|
||||
titleBarOverlay: useWindowFrame
|
||||
? false
|
||||
: {
|
||||
height: 49
|
||||
height: 47
|
||||
},
|
||||
autoHideMenuBar: true,
|
||||
// Win 显式指定 icon,避免异常/恢复路径下任务栏与窗口图标依赖默认 exe
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user