Skip to content

Commit b821796

Browse files
docs: add missing trafficLightPosition to WindowOptions (fix #13790) (#13810)
* docs: add missing `trafficLightPosition` to `WindowOptions` * Change file and tweak docs --------- Co-authored-by: Tony <[email protected]>
1 parent 33d0793 commit b821796

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tauri-apps/api": "patch:bug"
3+
---
4+
5+
Add missing `trafficLightPosition` TypeScript type definition

packages/api/src/dpi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Size {
206206
}
207207

208208
/**
209-
* A position represented in logical pixels.
209+
* A position represented in logical pixels.
210210
* For an explanation of what logical pixels are, see description of {@linkcode LogicalSize}.
211211
*
212212
* @since 2.0.0
@@ -272,7 +272,7 @@ class LogicalPosition {
272272
}
273273

274274
/**
275-
* A position represented in physical pixels.
275+
* A position represented in physical pixels.
276276
*
277277
* For an explanation of what physical pixels are, see description of {@linkcode PhysicalSize}.
278278
*

packages/api/src/window.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,14 @@ interface WindowOptions {
23252325
* The style of the macOS title bar.
23262326
*/
23272327
titleBarStyle?: TitleBarStyle
2328+
/**
2329+
* The position of the window controls on macOS.
2330+
*
2331+
* Requires `titleBarStyle: 'overlay'` and `decorations: true`.
2332+
*
2333+
* @since 2.4.0
2334+
*/
2335+
trafficLightPosition?: LogicalPosition
23282336
/**
23292337
* If `true`, sets the window title to be hidden on macOS.
23302338
*/

0 commit comments

Comments
 (0)