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>
This commit is contained in:
parent
c2c1d40294
commit
d53d3bb99e
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue