Menu ▾ ▴

#32 Notification Area icon not properly painted

v3.2.0
closed-wont-fix
nobody
Interface (22)
5
2019-03-12
2009-05-15
No

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.

Discussion

  • Daniel Castro

    Daniel Castro - 2009-05-15

    screenshot

     
  • Mickael Guessant

    You mean this does not happen with the default theme ?
    It could be an SWT bug.

     
  • Nobody/Anonymous

    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.

     
  • Mickael Guessant

    Sure, but if we can reproduce this bug with a simple SWT class, we could try to have the library fixed

     
  • Mickael Guessant

    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.

     
  • Mickael Guessant

    • status: open --> closed-wont-fix
     
  • Veselin

    Veselin - 2019-01-15

    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).

     
    • Mickael Guessant

      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:

      davmail.trayBackgroundColor=#E8E8E7
      

      => still no support for transparent icons, but at least a default background color.

       
  • Veselin

    Veselin - 2019-01-16

    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
    • Mickael Guessant

      On arch you should probably use official package:

      pacman -S swt
      

      ... then add it to classpath in davmail launch script

      With SWT 4, please also make sure you force gtk2:

      export SWT_GTK3=0
      
       
      • Vern Sun

        Vern Sun - 2019-03-08

        Thank you very much.

        Before:

        After:

        53826% dpg libswt
        ii  libswt-cairo-gtk-3-jni                                      3.8.2-3
        ii  libswt-gtk-3-java                                           3.8.2-3
        ii  libswt-gtk-3-jni                                            3.8.2-3
        53827% lsb_release -d
        Description:    Debian GNU/Linux testing (buster)
        53828% dpg davmail
        ii  davmail                                                     5.2.0-trunk-1
        
         
  • Veselin

    Veselin - 2019-01-17

    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.

     
  • Mickael Guessant

    Yes, I checked dorkbox some time ago, but the dependencies seemed way too complex.

    Thanks for your feedback.

     

Log in to post a comment.