iced icon indicating copy to clipboard operation
iced copied to clipboard

Tray icon support?

Open OrcaXS opened this issue 5 years ago • 10 comments

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.

OrcaXS avatar Dec 17 '19 13:12 OrcaXS

any update about this?

azzamsa avatar Sep 08 '20 07:09 azzamsa

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

brettinternet avatar Mar 04 '23 19:03 brettinternet

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 avatar Mar 06 '23 14:03 Tofixrs

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

Tofixrs avatar Mar 06 '23 14:03 Tofixrs

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.

meanbeanmachine avatar May 17 '23 14:05 meanbeanmachine

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.

mlntr avatar May 27 '24 09:05 mlntr

That's on the road map for the next version 👀

wiiznokes avatar Jan 10 '25 03:01 wiiznokes

I see that the tao crate removed the tray feature. That's a pity as one alternative less, maybe indicative of something about difficulty of providing/supporting this feature, but also could be a positive for iced adoption if it could be added - as there are not many options out there.

andrewdavidmackenzie avatar May 05 '25 11:05 andrewdavidmackenzie

@wiiznokes I don't see that on the 0.14 Milestone. Do you have a link/reference for what you are referring to, so I could follow it? Thanks.

andrewdavidmackenzie avatar May 05 '25 11:05 andrewdavidmackenzie

@wiiznokes I don't see that on the 0.14 Milestone. Do you have a link/reference for what you are referring to, so I could follow it? Thanks.

On the roadmap. But I it is now in "end game". I don't think it would be very long to implement for someone with experience in iced with the crate from tauri tho

wiiznokes avatar May 05 '25 11:05 wiiznokes