Skip to content

Commit

Permalink
docs: update window customization tutorial (#43660)
Browse files Browse the repository at this point in the history
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
  • Loading branch information
trop[bot] and VerteDinde authored Sep 10, 2024
1 parent aead35a commit 7097afb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/tutorial/window-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The [Window Controls Overlay API][] is a web standard that gives web apps the ab
customize their title bar region when installed on desktop. Electron exposes this API
through the `BrowserWindow` constructor option `titleBarOverlay`.

This option only works whenever a custom `titlebarStyle` is applied on macOS or Windows.
This option only works whenever a custom `titlebarStyle` is applied.
When `titleBarOverlay` is enabled, the window controls become exposed in their default
position, and DOM elements cannot use the area underneath this region.

Expand All @@ -107,7 +107,6 @@ Specifying `true` on either platform will result in an overlay region with defau
system colors:

```js title='main.js'
// on macOS or Windows
const { BrowserWindow } = require('electron')
const win = new BrowserWindow({
titleBarStyle: 'hidden',
Expand Down

0 comments on commit 7097afb

Please sign in to comment.