Reputation: 546
Slack on the Mac at least removed the title bar but still has the control buttons. How do I duplicate this effect? Is there an electron option I missing or did slack rollout there own control buttons?
Upvotes: 1
Views: 1549
Reputation: 5322
You can do this with Electron by setting the titleBarStyle
option.
To use it:
var winObj = new BrowserWindow({
titleBarStyle: 'hidden',
});
This will hide the title bar but still keep the traffic lights in the corner.
Here are different values for the titleBarStyle
option:
default
hidden
(Used in the example).
hiddenInset
See the docs for the BrowserWindow
options (search for titleBarStyle
).
Upvotes: 3