macoscocoanswindownstoolbar

Inset the X - and + buttons on a macOS window


In Electron, there is an option to make a window's titleBarStyle hiddenInset. (https://electronjs.org/docs/api/frameless-window) Is there a native option to do this?

Chrome also does this,


Solution

  • I found the answer: - Add a toolbar to the window - Set the title to invisible and transparent - Remove the separator from the toolbar - Remove any default buttons from the toolbar - Disable toolbar customization