mimbrero / whatsapp-desktop-linux

Unofficial WhatsApp Linux client built with Electron.
https://flathub.org/apps/details/io.github.mimbrero.WhatsAppDesktop
MIT License
80 stars 20 forks source link

[Feature Request] Tray icon #6

Closed jr1991-g closed 2 years ago

jr1991-g commented 2 years ago

This client works really well. I'm afraid to ask, but would it be possible to add a tray icon? That would make it perfect.

mimbrero commented 2 years ago

Thank you!

I tried to recreate the official Windows app, which has no tray icon, but yeah I should add it.

Following GNOME guidelines, it should have minimal functionality, as some desktops (GNOME primarily) don't use tray icons. However, background activity and a simple icon to show, hide and close the app should be fine. How about it?

jr1991-g commented 2 years ago

I think that would be great! If you want a tester here I am.

marcelovbcfilho commented 2 years ago

I was looking through eletrcon documentation and I found that is possible to update dynamically the tray icon, SO I would like to know if when implementing would be possible to update the tray icon with the amount of unread messages, like is in the browser version.

The image show an exemple about what I was thinking. But I believe that to follow the gnome behavior the icon should be monochromatic.

Screenshot from 2022-02-04 23-32-46

Issue saying that is possible to update dynamically the tray icon https://stackoverflow.com/a/43695301

mimbrero commented 2 years ago

I was looking through eletrcon documentation and I found that is possible to update dynamically the tray icon, SO I would like to know if when implementing would be possible to update the tray icon with the amount of unread messages, like is in the browser version.

The image show an exemple about what I was thinking. But I believe that to follow the gnome behavior the icon should be monochromatic.

Screenshot from 2022-02-04 23-32-46

Issue saying that is possible to update dynamically the tray icon https://stackoverflow.com/a/43695301

Yeah, it's possible, also with the app icon, which I was already implementing 😄

mimbrero commented 2 years ago

@marcelovbcfilho how high does the count go in that icon? up 9 or what?

825i commented 2 years ago

It goes up to (99+) which is excessive. You could cut it at (9+) or something, or even just set a static (1) no matter how many replies there are.

The tray icon options could be:

  1. Show app
  2. Settings (if not too difficult to do)
  3. Mute notifications (if not too difficult to do)
  4. Quit

Two and Three are not so important really though.

mimbrero commented 2 years ago

Thanks for the information @pythonInRelay.

I'll work on this ASAP, but I'm a bit busy, so give me some days :)