Doc customButtonsOnHover in frameless window guide
This commit is contained in:
parent
41d582f689
commit
d5dc849c7a
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue