mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Adding documentation about hidden-inset
This commit is contained in:
@@ -27,12 +27,24 @@ 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
|
||||
the window controls ("traffic lights") for standard window actions.
|
||||
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
|
||||
const {BrowserWindow} = require('electron')
|
||||
let win = new BrowserWindow({titleBarStyle: 'hidden'})
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user