From 594302fcff2311c95a576bd6ac432987aadbcb1e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 5 Jun 2017 14:07:57 -0700 Subject: [PATCH] Update docs to use hiddenInset --- docs/api/frameless-window.md | 6 +++--- docs/api/touch-bar.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/frameless-window.md b/docs/api/frameless-window.md index 4f091ec6c3..0bab1e55e3 100644 --- a/docs/api/frameless-window.md +++ b/docs/api/frameless-window.md @@ -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 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: +You can do so by specifying the `titleBarStyle` option: #### `hidden` @@ -38,13 +38,13 @@ let win = new BrowserWindow({titleBarStyle: 'hidden'}) 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. ```javascript const {BrowserWindow} = require('electron') -let win = new BrowserWindow({titleBarStyle: 'hidden-inset'}) +let win = new BrowserWindow({titleBarStyle: 'hiddenInset'}) win.show() ``` diff --git a/docs/api/touch-bar.md b/docs/api/touch-bar.md index 8f1b8732f8..914c22086a 100644 --- a/docs/api/touch-bar.md +++ b/docs/api/touch-bar.md @@ -129,7 +129,7 @@ let window app.once('ready', () => { window = new BrowserWindow({ frame: false, - titleBarStyle: 'hidden-inset', + titleBarStyle: 'hiddenInset', width: 200, height: 200, backgroundColor: '#000'