keshavbhatt / whatsie

Feature rich WhatsApp Client for Desktop Linux
MIT License
1.87k stars 54 forks source link

Add monocrome tray icons #93

Open geser2008 opened 1 year ago

geser2008 commented 1 year ago

Hello. Please add monochrome tray icons for light and dark panel background. I'm running v.4.9 build from AUR on Manjaro. Thank you.

Sadi58 commented 10 months ago

My amateur DIY attempts: 😉

  1. I first tried the easy way: replacing some color app icons with monochrome ones, but it didn't work. The hicolor icon theme (/usr/share/icons/hicolor) has a color icon named com.ktechpit.whatsie in five different sizes as well as scalable, but also a monochrome icon named com.ktechpit.whatsie-symbolic, but they are not used in systray (so, replacing those color icons or adding monochrome icons to ~/.local/share/icons/hicolor has no effect).

  2. I then tried building Whatsie from source after replacing whatsapp-message-32.png and whatsapp-message.svg in subdirectory ./src/icons/app/ with monochrome ones, and doing the same for all icons in subdirectory ./src/icons/app/notification/ which made some difference as can be seen in the screenshot below! I'm also attaching the monochrome icons I've used in a compressed file below. whatsie-notify whatsie-src-icons-app.tar.gz

EDIT: It seems you only need to change the icons n subdirectory ./src/icons/app/notification/, leaving whatsapp-message-32.png and whatsapp-message.svg in subdirectory ./src/icons/app/ intact.

tubbadu commented 10 months ago

In case you still need this, changing all icons icon-XY.png and also all icons at whatsie/src/icons/app/notification/whatsie-notify-XY.png managed to get a monochrome icon: image

here's my icons, you can change the notification bubble color and the icon color to make it suitable for your theme if you want to: app.tar.gz just replace the whole whatsie/src/icons/app dir with the content of the tar.gz and build it

Sadi58 commented 10 months ago

@tubbadu I think we only need to change the icons in subdirectory ./src/icons/app/notification/ to get monochrome icons in systray, and those in ./src/icons/app/ are app icons, which might be left intact - even including whatsapp-message-32.png and whatsapp-message.svg which probably change the app icon (when Whatsie window is not minimized, i.e. displayed in Task Manager). Am I right?

allan-null commented 3 months ago

It would be really nice if this app would get its icons from the icon theme.

Sadi58 commented 3 months ago

@allan-null Yes, it would be much better if the status icons were placed in e.g. "/usr/share/icons/hicolor/22x22/status" just like the app icons placed in "/usr/share/icons/hicolor/[64x64|128x128|512x512]/apps". This would also make it much easier to use monochrome dark/light variations as well.