mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
feat: custom positioning for traffic light buttons (#21781)
* feat: custom positioning for traffic light buttons * remove NSLog and unnecessary call-site in IsVisible() * no longer need to check if entering fullscreen * change API to take a point object Co-authored-by: tonyfwoo <55114329+tonyfwoo@users.noreply.github.com>
This commit is contained in:
@@ -229,6 +229,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
||||
unless hovered over in the top left of the window. These custom buttons prevent
|
||||
issues with mouse events that occur with the standard window toolbar buttons.
|
||||
**Note:** This option is currently experimental.
|
||||
* `trafficLightPosition` [Point](structures/point.md) (optional) - Set a custom position for the traffic light buttons. Can only be used with `titleBarStyle` set to `hidden`
|
||||
* `fullscreenWindowTitle` Boolean (optional) - Shows the title in the
|
||||
title bar in full screen mode on macOS for all `titleBarStyle` options.
|
||||
Default is `false`.
|
||||
|
||||
Reference in New Issue
Block a user