iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
23.38k stars 1.07k forks source link

Tray icon support? #124

Open OrcaXS opened 4 years ago

OrcaXS commented 4 years ago

It would be nice if we can close/minimize window to tray instead of closing the entire application, like https://electronjs.org/docs/api/tray in Electron. I think it might be related to https://github.com/hecrj/iced/issues/27.

azzamsa commented 3 years ago

any update about this?

brettinternet commented 1 year ago

I believe you could use Tauri's tray-icon which works with Tao's EventLoop and likewise Winit's EventLoop.

Tofixrs commented 1 year ago

I believe you could use Tauri's tray-icon which works with Tao's EventLoop and likewise Winit's EventLoop.

It doesnt work fully yet (atleast for me). You cant recieve the tray events

Tofixrs commented 1 year ago

I believe you could use Tauri's tray-icon which works with Tao's EventLoop and likewise Winit's EventLoop. It doesnt work fully yet (atleast for me). You cant recieve the tray events

Never mind it does. Tested it with the egui example wich didnt work for some reason, but the tao one works fully

meanbeanmachine commented 1 year ago

I believe you could use Tauri's tray-icon which works with Tao's EventLoop and likewise Winit's EventLoop. It doesnt work fully yet (atleast for me). You cant recieve the tray events

Never mind it does. Tested it with the egui example wich didnt work for some reason, but the tao one works fully

Would you mind providing an example of this? I am desperately tying to use TAO for the loop, window, and system tray along with Iced for the GUI.

mlntr commented 1 month ago

This would be very helpful to have this feature in Iced. Useful for so many different applications e.g. chat clients, email clients, cloud clients, etc.