diff --git a/src/main/window.ts b/src/main/window.ts index c0128df8..dc097273 100644 --- a/src/main/window.ts +++ b/src/main/window.ts @@ -16,6 +16,8 @@ export function createMainWindow() { const theme = appConfig.get('theme') || 'light' // Create the browser window. + const isMac = process.platform === 'darwin' + const mainWindow = new BrowserWindow({ x: mainWindowState.x, y: mainWindowState.y, @@ -25,11 +27,12 @@ export function createMainWindow() { minHeight: 600, show: true, autoHideMenuBar: true, - transparent: process.platform === 'darwin', + transparent: isMac, vibrancy: 'fullscreen-ui', visualEffectState: 'active', titleBarStyle: 'hidden', titleBarOverlay: theme === 'dark' ? titleBarOverlayDark : titleBarOverlayLight, + backgroundColor: isMac ? undefined : theme === 'dark' ? '#181818' : '#FFFFFF', trafficLightPosition: { x: 8, y: 12 }, ...(process.platform === 'linux' ? { icon } : {}), webPreferences: { diff --git a/src/renderer/index.html b/src/renderer/index.html index 261102d1..c8ed1700 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -1,36 +1,40 @@ - - - - - - - -
-
- -
- - - + + + + + + + + + +
+
+ +
+ + + + \ No newline at end of file