From d53d3bb99ea26bf45719da0f0ead321b1133fba5 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 09:41:48 +0100 Subject: [PATCH] docs: explain how to create transparent window using BaseWindow (#49051) docs: clarify how to create transparent BaseWindow Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: teoyuqi <83915879+teoyuqi@users.noreply.github.com> --- docs/api/structures/base-window-options.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/structures/base-window-options.md b/docs/api/structures/base-window-options.md index 1dc5e545a071..72189d6c6a1a 100644 --- a/docs/api/structures/base-window-options.md +++ b/docs/api/structures/base-window-options.md @@ -72,6 +72,9 @@ some GTK+3 desktop environments. Default is `false`. * `transparent` boolean (optional) - Makes the window [transparent](../../tutorial/custom-window-styles.md#transparent-windows). Default is `false`. On Windows, does not work unless the window is frameless. + When you add a [`View`](../view.md) to a `BaseWindow`, you'll need to call + [`view.setBackgroundColor`](../view.md#viewsetbackgroundcolorcolor) with a transparent + background color on that view to make its background transparent as well. * `type` string (optional) - The type of window, default is normal window. See more about this below. * `visualEffectState` string (optional) _macOS_ - Specify how the material