Hey Kotlin enthusiasts! 👋
I'm thrilled to share that I've just released
Compose Native Tray v0.4.0! This update brings some exciting new features:
•
Compose Recomposition Support: You can now dynamically show/hide the tray based on state changes in Compose. 🎉
•
Single Instance Management: This feature ensures that only one instance of your app runs at a time, helping to keep your application focused and prevent multiple instances.
•
Dynamic Tray Position Detection & Tray Window Positioning: This feature allows for dynamic detection of the tray's position on Windows and Linux, enabling better alignment of windows with the tray. (macOS still defaults to
TOP_RIGHT
for now). Additionally, the
getTrayWindowPosition(windowWidth: Int, windowHeight: Int)
function helps determine the appropriate position for a window based on the tray's location, ensuring a seamless user experience.
•
Primary Action Handling on Linux: If the context menu on Linux is empty, the library now uses
gtkstatusicon
to capture the primary action without requiring an item in the context menu.
This version makes it easier than ever to build reliable and polished system tray applications with Kotlin.
Check it out on GitHub, and I'd love to hear your thoughts or feedback!
👉
Check here !
Happy coding! ✨