mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
* docs: add missing `trafficLightPosition` to `WindowOptions` * Change file and tweak docs --------- Co-authored-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
5
.changes/traffic-light-position-type.md
Normal file
5
.changes/traffic-light-position-type.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tauri-apps/api": "patch:bug"
|
||||
---
|
||||
|
||||
Add missing `trafficLightPosition` TypeScript type definition
|
||||
@@ -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}.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user