79660976

Date: 2025-06-10 18:30:22
Score: 1.5
Natty:
Report link

If I understand correctly, you'd probably get what you want (a titleBar-less window) by changing the BaseWindowConstructorOptions preferences to this:

mainWindow = new BrowserWindow({
  height: 600,
  width: 1000,
  titleBarStyle: "hidden", // this hides the title bar
  webPreferences: {
    preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
  },
});

There's more options here if you'd like to check them out under "titleBarStyle": https://www.electronjs.org/docs/latest/api/structures/base-window-options

Best, Peter.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter