When running on macOS, you can use the titleBarStyle property. Here's what the official documentation says about this feature:
Instead of setting
frame to
false, which disables both the title bar and window controls, you may want to have the title bar hidden and your content extend to the full window size, yet still preserve the window controls (
traffic lights) for standard window actions. You can find out more here:
https://electronjs.org/docs/api/frameless-window#alternatives-on-macos.
Let's take a look at how each of these features works in practice.