Notification Area icon not properly painted
Brought to you by:
mguessan
I see this on a Acer Aspire One 110L with Ubuntu 9.04 UNR
When DavMail is opened the icon in the notification area has a white background which contrasts with the dark theme. After the icon is repainted (DamMail activity) then the icon background goes black and looks as the rest. I suspect this may happen with other dark themes. Screenshot attached.
screenshot
You mean this does not happen with the default theme ?
It could be an SWT bug.
No, on a default colo theme it won't happen. Only with a dark one. And once the icon is repainted its fixed.
Workaround: repaint the icon once after started to make sure it updates the background color to match whatever there is.
Sure, but if we can reproduce this bug with a simple SWT class, we could try to have the library fixed
I confirm this is an SWT bug, already fixed in upcoming swt 3.5, will wail until they actually release the new version to upgrade. In the mean time, you can replace the packaged library with the new one from SWT site.
Have the same issue with DavMail 5.1.0 on Manjaro (Arch) Linux and XFCE4. There is a gray background (instead transparent) and the icon is not properly sclaed (the yellow cyrlce with the flash is smaller than the gray rectangle).
This is not the same issue: you don't have SWT so you get the default java tray icon, which has a long standing bug: it does not support transparent icons on Linux.
Anyway, latest trunk has a special case for XFCE, you can override default background with:
=> still no support for transparent icons, but at least a default background color.
How to add SWT? I downloaded swt.jar and copied it to the davmail/lib folder. But there is still no transparency.
Last edit: Veselin 2019-01-16
On arch you should probably use official package:
... then add it to classpath in davmail launch script
With SWT 4, please also make sure you force gtk2:
Thank you very much.
Before:

After:

Thank you very much for the support. I tried it and it is working.
I also found this java system tray library: https://git.dorkbox.com/dorkbox/SystemTray.
It looks very promising.
Yes, I checked dorkbox some time ago, but the dependencies seemed way too complex.
Thanks for your feedback.