slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.91k stars 562 forks source link

Request for Support System Tray Icon #6053

Open ArcticLampyrid opened 1 week ago

ArcticLampyrid commented 1 week ago

While there are several excellent tray icon libraries available for Rust, they often pose challenges when integrated with Slint. These libraries may introduce heavy dependencies (e.g., GTK), conflict with Slint's event loop, or come with other drawbacks.

To ensure a smoother experience, it may be more advantageous for Slint to provide native APIs for tray icon support.

Additionally, C++ users would benefit from this, as there is a lack of standalone and actively maintained tray libraries for C++ (if there are any, please let me know). In fact, we are considering introducing Qt as a dependency solely for cross-platform tray support.

ogoffart commented 1 week ago

I think we'll indeed need to tackle this problem in Slint at some point.