Add newlines and backticks
This commit is contained in:
parent
29470dd018
commit
c8263a9a18
1 changed files with 6 additions and 2 deletions
|
@ -27,7 +27,9 @@ 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 new `titleBarStyle` option:
|
||||||
#### Hidden
|
|
||||||
|
#### `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.
|
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
|
||||||
|
@ -35,7 +37,9 @@ const {BrowserWindow} = require('electron')
|
||||||
let win = new BrowserWindow({titleBarStyle: 'hidden'})
|
let win = new BrowserWindow({titleBarStyle: 'hidden'})
|
||||||
win.show()
|
win.show()
|
||||||
```
|
```
|
||||||
#### Hidden-inset
|
|
||||||
|
#### `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.
|
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
|
||||||
|
|
Loading…
Reference in a new issue