From ad86f58e47c783a6444accca8d070e8f458c4f06 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Tue, 15 Feb 2022 14:53:51 +0000 Subject: [PATCH] Linux frame --- src/main/base/browserwindow.ts | 3 ++- src/renderer/style.less | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/base/browserwindow.ts b/src/main/base/browserwindow.ts index cbe6547d..6eca794f 100644 --- a/src/main/base/browserwindow.ts +++ b/src/main/base/browserwindow.ts @@ -87,7 +87,7 @@ export class BrowserWindow { y: undefined, minWidth: 900, minHeight: 390, - frame: false, + frame: (process.platform === "linux"), title: "Cider", vibrancy: "fullscreen-ui", transparent: process.platform === "darwin", @@ -129,6 +129,7 @@ export class BrowserWindow { this.startWebServer(); BrowserWindow.win = new bw(this.options); + BrowserWindow.win.setMenuBarVisibility(false) const ws = new wsapi(BrowserWindow.win) ws.InitWebSockets() // and load the renderer. diff --git a/src/renderer/style.less b/src/renderer/style.less index 85949811..7ca4b38d 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -3120,7 +3120,7 @@ body.no-gpu { } } -body[platform='darwin'] { +body[platform='darwin'], body[platform='linux'] { #window-controls-container { display: none; }