popout: fix titlebar on windows when using native titlebar
This commit is contained in:
parent
b20c77734c
commit
8c007476c3
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BrowserWindow, BrowserWindowConstructorOptions } from "electron";
|
import { BrowserWindow, BrowserWindowConstructorOptions } from "electron";
|
||||||
|
import { Settings } from "main/settings";
|
||||||
|
|
||||||
import { handleExternalUrl } from "./makeLinksOpenExternally";
|
import { handleExternalUrl } from "./makeLinksOpenExternally";
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ const DEFAULT_POPOUT_OPTIONS: BrowserWindowConstructorOptions = {
|
||||||
backgroundColor: "#2f3136",
|
backgroundColor: "#2f3136",
|
||||||
minWidth: MIN_POPOUT_WIDTH,
|
minWidth: MIN_POPOUT_WIDTH,
|
||||||
minHeight: MIN_POPOUT_HEIGHT,
|
minHeight: MIN_POPOUT_HEIGHT,
|
||||||
frame: process.platform === "linux",
|
frame: Settings.store.customTitleBar !== true,
|
||||||
titleBarStyle: process.platform === "darwin" ? "hidden" : undefined,
|
titleBarStyle: process.platform === "darwin" ? "hidden" : undefined,
|
||||||
trafficLightPosition:
|
trafficLightPosition:
|
||||||
process.platform === "darwin"
|
process.platform === "darwin"
|
||||||
|
|
Loading…
Reference in a new issue