1.7 KiB
1.7 KiB
BrowserWindowConstructorOptions Object extends BaseWindowConstructorOptions
webPreferencesWebPreferences (optional) - Settings of web page's features.paintWhenInitiallyHiddenboolean (optional) - Whether the renderer should be active whenshowisfalseand it has just been created. In order fordocument.visibilityStateto work correctly on first load withshow: falseyou should set this tofalse. Setting this tofalsewill cause theready-to-showevent to not fire. Default istrue.titleBarOverlayObject | Boolean (optional) - When using a frameless window in conjunction withwin.setWindowButtonVisibility(true)on macOS or using atitleBarStyleso that the standard window controls ("traffic lights" on macOS) are visible, this property enables the Window Controls Overlay JavaScript APIs and CSS Environment Variables. Specifyingtruewill result in an overlay with default system colors. Default isfalse.colorString (optional) Windows - The CSS color of the Window Controls Overlay when enabled. Default is the system color.symbolColorString (optional) Windows - The CSS color of the symbols on the Window Controls Overlay when enabled. Default is the system color.heightInteger (optional) macOS Windows - The height of the title bar and Window Controls Overlay in pixels. Default is system height.