From 7097afb7f0d50bcca8f966f88926b51ac4b010e8 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:12:14 +0200 Subject: [PATCH] docs: update window customization tutorial (#43660) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Keeley Hammond --- docs/tutorial/window-customization.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/tutorial/window-customization.md b/docs/tutorial/window-customization.md index e8a552a621e3..bb35aa524935 100644 --- a/docs/tutorial/window-customization.md +++ b/docs/tutorial/window-customization.md @@ -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. @@ -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',