From a7939b22852087323f473b75bac7231c7dc5518d Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Mon, 13 Dec 2021 15:38:16 +0300 Subject: [PATCH] Remove frame on linux and windows Signed-off-by: Alex Andreev --- src/main/window-manager.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/window-manager.ts b/src/main/window-manager.ts index 3aac404c5b..155265fc4b 100644 --- a/src/main/window-manager.ts +++ b/src/main/window-manager.ts @@ -29,7 +29,7 @@ import { delay, iter, Singleton } from "../common/utils"; import { ClusterFrameInfo, clusterFrameMap } from "../common/cluster-frames"; import { IpcRendererNavigationEvents } from "../renderer/navigation/events"; import logger from "./logger"; -import { isLinux, isWindows, productName } from "../common/vars"; +import { isMac, productName } from "../common/vars"; import { LensProxy } from "./lens-proxy"; export const enum IpcMainWindowEvents { @@ -85,7 +85,8 @@ export class WindowManager extends Singleton { show: false, minWidth: 700, // accommodate 800 x 600 display minimum minHeight: 500, // accommodate 800 x 600 display minimum - titleBarStyle: (isWindows || isLinux) ? "hidden" : "hiddenInset", + titleBarStyle: isMac ? "hiddenInset" : "hidden", + frame: isMac, backgroundColor: "#1e2124", webPreferences: { nodeIntegration: true,