Doc customButtonsOnHover in frameless window guide

This commit is contained in:
Kevin Sawicki 2017-06-05 14:16:44 -07:00
parent 41d582f689
commit d5dc849c7a

View file

@ -48,6 +48,18 @@ let win = new BrowserWindow({titleBarStyle: 'hiddenInset'})
win.show() win.show()
``` ```
#### `customButtonsOnHover`
Uses custom drawn close, miniaturize, and fullscreen buttons that display
when hovering in the top left of the window. These custom buttons prevent issues
with mouse events that occur with the standard window toolbar buttons.
```javascript
const {BrowserWindow} = require('electron')
let win = new BrowserWindow({titleBarStyle: 'customButtonsOnHover', frame: false})
win.show()
```
## Transparent window ## Transparent window
By setting the `transparent` option to `true`, you can also make the frameless By setting the `transparent` option to `true`, you can also make the frameless