diff --git a/src/main/config.ts b/src/main/config.ts index bc7daa8f82..75a908bff3 100644 --- a/src/main/config.ts +++ b/src/main/config.ts @@ -21,13 +21,13 @@ export const DATA_PATH = getDataPath() export const appConfig = new Store() export const titleBarOverlayDark = { - height: 41, + height: 40, color: '#00000000', symbolColor: '#ffffff' } export const titleBarOverlayLight = { - height: 41, + height: 40, color: '#00000000', symbolColor: '#000000' } diff --git a/src/main/window.ts b/src/main/window.ts index 38c325e8d2..0ac8f21a16 100644 --- a/src/main/window.ts +++ b/src/main/window.ts @@ -27,6 +27,7 @@ export function createMainWindow() { autoHideMenuBar: true, transparent: process.platform === 'darwin', vibrancy: 'fullscreen-ui', + visualEffectState: 'active', titleBarStyle: 'hidden', titleBarOverlay: theme === 'dark' ? titleBarOverlayDark : titleBarOverlayLight, trafficLightPosition: { x: 8, y: 12 }, diff --git a/src/renderer/index.html b/src/renderer/index.html index e1e049fa6c..e42dbf24bc 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -7,11 +7,19 @@ http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src *; script-src 'self' *; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' *; font-src 'self' data: *; img-src 'self' data: file: *; frame-src * file:" />