docs: clarify allowable background colors for BrowserWindow transparency (backport: 3-0-x) (#14781)
* docs: clarify allowable colors for transparency * fix alpha value specification
This commit is contained in:
parent
7eb1c3fb1b
commit
05a429075e
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
||||||
than screen. Default is `false`.
|
than screen. Default is `false`.
|
||||||
* `backgroundColor` String (optional) - Window's background color as a hexadecimal value,
|
* `backgroundColor` String (optional) - Window's background color as a hexadecimal value,
|
||||||
like `#66CD00` or `#FFF` or `#80FFFFFF` (alpha is supported). Default is
|
like `#66CD00` or `#FFF` or `#80FFFFFF` (alpha is supported). Default is
|
||||||
`#FFF` (white).
|
`#FFF` (white). If `transparent` is set to `true`, only values with transparent (`#00-------`) or opaque (`#FF-----`) alpha values are respected.
|
||||||
* `hasShadow` Boolean (optional) - Whether window should have a shadow. This is only
|
* `hasShadow` Boolean (optional) - Whether window should have a shadow. This is only
|
||||||
implemented on macOS. Default is `true`.
|
implemented on macOS. Default is `true`.
|
||||||
* `opacity` Number (optional) - Set the initial opacity of the window, between 0.0 (fully
|
* `opacity` Number (optional) - Set the initial opacity of the window, between 0.0 (fully
|
||||||
|
|
Loading…
Add table
Reference in a new issue