docs: add missing trafficLightPosition to WindowOptions (fix #13790) (#13810)

* docs: add missing `trafficLightPosition` to `WindowOptions`

* Change file and tweak docs

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
Lucas Raposeiras
2025-07-13 09:58:39 -03:00
committed by GitHub
parent 33d079392a
commit b821796add
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@tauri-apps/api": "patch:bug"
---
Add missing `trafficLightPosition` TypeScript type definition

View File

@@ -206,7 +206,7 @@ class Size {
}
/**
* A position represented in logical pixels.
* A position represented in logical pixels.
* For an explanation of what logical pixels are, see description of {@linkcode LogicalSize}.
*
* @since 2.0.0
@@ -272,7 +272,7 @@ class LogicalPosition {
}
/**
* A position represented in physical pixels.
* A position represented in physical pixels.
*
* For an explanation of what physical pixels are, see description of {@linkcode PhysicalSize}.
*

View File

@@ -2325,6 +2325,14 @@ interface WindowOptions {
* The style of the macOS title bar.
*/
titleBarStyle?: TitleBarStyle
/**
* The position of the window controls on macOS.
*
* Requires `titleBarStyle: 'overlay'` and `decorations: true`.
*
* @since 2.4.0
*/
trafficLightPosition?: LogicalPosition
/**
* If `true`, sets the window title to be hidden on macOS.
*/