Update docs to use hiddenInset
This commit is contained in:
parent
3a2abde804
commit
594302fcff
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ a chromeless window. Instead of setting `frame` to `false` which disables
|
||||||
both the titlebar and window controls, you may want to have the title bar
|
both the titlebar and window controls, you may want to have the title bar
|
||||||
hidden and your content extend to the full window size, yet still preserve
|
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 `titleBarStyle` option:
|
||||||
|
|
||||||
#### `hidden`
|
#### `hidden`
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@ let win = new BrowserWindow({titleBarStyle: 'hidden'})
|
||||||
win.show()
|
win.show()
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `hidden-inset`
|
#### `hiddenInset`
|
||||||
|
|
||||||
Results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
|
Results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const {BrowserWindow} = require('electron')
|
const {BrowserWindow} = require('electron')
|
||||||
let win = new BrowserWindow({titleBarStyle: 'hidden-inset'})
|
let win = new BrowserWindow({titleBarStyle: 'hiddenInset'})
|
||||||
win.show()
|
win.show()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ let window
|
||||||
app.once('ready', () => {
|
app.once('ready', () => {
|
||||||
window = new BrowserWindow({
|
window = new BrowserWindow({
|
||||||
frame: false,
|
frame: false,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hiddenInset',
|
||||||
width: 200,
|
width: 200,
|
||||||
height: 200,
|
height: 200,
|
||||||
backgroundColor: '#000'
|
backgroundColor: '#000'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue