diff --git a/src/main/base/browserwindow.ts b/src/main/base/browserwindow.ts index ad617046..1e4011bd 100644 --- a/src/main/base/browserwindow.ts +++ b/src/main/base/browserwindow.ts @@ -46,8 +46,8 @@ export class BrowserWindow { hasShadow: false, show: false, backgroundColor: "#1E1E1E", - titleBarStyle: 'customButtonsOnHover', - trafficLightPosition: {x: 960, y: 20}, + titleBarStyle: 'hidden', + trafficLightPosition: {x: 15, y: 20}, webPreferences: { nodeIntegration: true, sandbox: true, diff --git a/src/renderer/style.less b/src/renderer/style.less index 560b21e2..87d68942 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -68,10 +68,6 @@ body[loading] { } } -body[platform='linux'] { - background: #222; -} - body.notransparency::before { content: ""; position: absolute; @@ -880,6 +876,7 @@ input[type=range].web-slider::-webkit-slider-runnable-track { .app-chrome .app-chrome--left { width: 30%; justify-content: left; + -webkit-app-region: drag; } .app-chrome .app-chrome--center { @@ -5957,5 +5954,17 @@ body.no-gpu { } } +body[platform='darwin'] { + #window-controls-container { + display: none; + } + + .app-chrome .app-chrome-item > .app-mainmenu { + opacity: 0; + pointer-events: none; + -webkit-app-region: drag; + } +} + @import url("less/compact.less");