Merge pull request #7757 from crilleengvall/master

Adding documentation about hidden-inset
This commit is contained in:
Kevin Sawicki 2016-10-28 02:42:57 +09:00 committed by GitHub
commit 2006d64939

View file

@ -28,12 +28,26 @@ hidden and your content extend to the full window size, yet still preserve
the window controls ("traffic lights") for standard window actions. the window controls ("traffic lights") for standard window actions.
You can do so by specifying the new `titleBarStyle` option: You can do so by specifying the new `titleBarStyle` option:
#### `hidden`
Results in a hidden title bar and a full size content window, yet the title bar still has the standard window controls (“traffic lights”) in the top left.
```javascript ```javascript
const {BrowserWindow} = require('electron') const {BrowserWindow} = require('electron')
let win = new BrowserWindow({titleBarStyle: 'hidden'}) let win = new BrowserWindow({titleBarStyle: 'hidden'})
win.show() win.show()
``` ```
#### `hidden-inset`
Results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
```javascript
const {BrowserWindow} = require('electron')
let win = new BrowserWindow({titleBarStyle: 'hidden-inset'})
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