You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add windowsTitle parameter to TrayApp for configurable popup window titles
- Added a `windowsTitle` parameter to `TrayApp` and its related methods for setting custom popup window titles.
- Updated `DialogWindow` to utilize the provided title, improving accessibility and debugging support.
- Documented the new parameter in the README with examples.
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -676,7 +676,25 @@ application {
676
676
677
677
Note: The fade-in/out animation in TrayApp controls the content alpha (visual fade) and is independent from window transparency. Transparency support is available on Linux, Windows, and macOS.
678
678
679
-
## 🧩 New: Tray Window Dismiss Modes
679
+
#### Window Title
680
+
You can set the popup window title using the `windowsTitle` parameter. The window remains undecorated, but the title may still be used by some window managers or for accessibility/debugging.
681
+
682
+
- Default: `windowsTitle = ""` (empty)
683
+
- Example:
684
+
```kotlin
685
+
@OptIn(ExperimentalTrayAppApi::class)
686
+
application {
687
+
TrayApp(
688
+
icon =Icons.Default.Dashboard,
689
+
tooltip ="My Tray App",
690
+
windowsTitle ="My Tray Popup"
691
+
) {
692
+
// content
693
+
}
694
+
}
695
+
```
696
+
697
+
## 🧩 New: Tray Window Dismiss Modes
680
698
681
699
By default, the `TrayApp` popup window closes automatically when it loses focus or when the user clicks outside of it.
682
700
With the new `TrayWindowDismissMode` API, you can choose between:
0 commit comments