More vibrancy fixes (#12157)
* Only set title bar to transparent when vibrant with a custom titlebar * Correctly set the transparent state of the GpuSwitcher so vibrancy works on reload * Document case where using frame: false without custom titleBarStyle and vibrant
This commit is contained in:
parent
2f4fd3324b
commit
8c138e74be
2 changed files with 10 additions and 3 deletions
|
@ -235,7 +235,9 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
window shadow and window animations. Default is `true`.
|
||||
* `vibrancy` String (optional) - Add a type of vibrancy effect to the window, only on
|
||||
macOS. Can be `appearance-based`, `light`, `dark`, `titlebar`, `selection`,
|
||||
`menu`, `popover`, `sidebar`, `medium-light` or `ultra-dark`.
|
||||
`menu`, `popover`, `sidebar`, `medium-light` or `ultra-dark`. Please note that
|
||||
using `frame: false` in combination with a vibrancy value requires that you use a
|
||||
non-default `titleBarStyle` as well.
|
||||
* `zoomToPageWidth` Boolean (optional) - Controls the behavior on macOS when
|
||||
option-clicking the green stoplight button on the toolbar or by clicking the
|
||||
Window > Zoom menu item. If `true`, the window will grow to the preferred
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue