Announcement

Collapse
No announcement yet.

Transparent icon not transparent in System Tray

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Transparent icon not transparent in System Tray

    Just installed iplist. It has a single transparent background icon at /usr/share/pixmaps/ipblock.png.

    The transparency is respected by KDE where the icon is show for the K Menu entry (Applications > Internet > IPblock), but, when launched, the System Tray does not. To the best of my knowledge, this aberrant behavior of a transparent application icon has never happened before. Anyone know why this is happening, and more importantly, if/how to fix it?
    Attached Files
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    Re: Transparent icon not transparent in System Tray

    Maybe

    The KDE is using an iconcache to speed KDE/application startup times. Sometimes the KDE icon cache could get corrupted. Then there are wrong icons, corrupted icons or totally mission icons. If this is the problem - you could try to move/rename/remove the kde-icon-cache files


    Reset icon-cache

    Stop the application (iplist)
    Reset the kde icon cache by removing:
    Code:
    rm /var/tmp/kdecache-$USER/kpc/kde-icon-cache.*
    This will remove the kde-icon-cache files. Sometimes you will need log out and log in.

    At here:
    rog@K910:~$ rm /var/tmp/kdecache-$USER/kpc/kde-icon-cache.*
    rog@K910:~$ rm /var/tmp/kdecache-$USER/kpc/kde-icon-cache.*
    rm: cannot remove `/var/tmp/kdecache-rog/kpc/kde-icon-cache.*': No such file or directory
    The icon cache is empty and the cache is building from the scratch.


    Earlier:
    > Topic: Corrupt Desktop Icons
    > Topic: the exit icons have disappeared
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: Transparent icon not transparent in System Tray

      Thanks Rog. Tried your suggestion of deleting the /var/tmp/kdecache-$USER/kpc/kde-icon-cache.* files (three of them), then logged out and logged back in. The three files were recreated as you point out, but when I launched IPblock, it's System Tray icon is still not respecting the transparency.

      I am using the Tragedy 2.0.1 Plasma Theme. I'll switch to Oxygen and see if there is any difference in the handling of this icon.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: Transparent icon not transparent in System Tray

        Okay, tried the Oxygen and Air Plasma Themes. In both, the transparency of the IPblock icon is not being respected when it's placed in the System Tray.

        The icon does have a transparent background. Why isn't its transparency being respected?
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Transparent icon not transparent in System Tray

          Experimenting a bit - and then searching

          Editing with the Gimp the /usr/share/pixmaps/ipblock.png. Using the Eraser tool to remove the pixels from the icon. The Icon is changing in the K-menu but not in the System Tray.



          So it seems that the System Tray is not using the /usr/share/pixmaps/ipblock.png.


          Searching - this old Mandriva user board topic > KDE Tray Icons Have White Background [solved] is telling that the non KDE (or non Qt) applications could have hickups with the KDE color/transparency system.
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Transparent icon not transparent in System Tray

            Hmm. "non KDE (or non QT) applications"

            I don't think that iplist is a GKT application - how can I tell? But that everywhere on my system, the icons background is transparent except for the System Tray just doesn't make any sense. I know it isn't my Tragedy Theme, as I tested it on the other two 'default' Themes and the behavior is the same.

            That would tell me that it's a plasma issue, but what?
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Transparent icon not transparent in System Tray

              I don't think that iplist is a GKT application - how can I tell?
              No - it is a C++ with the java GUI

              /iplist-0.28/src$ file main.cc

              main.cc: ASCII C program text

              apt-cache show iplist

              Package: iplist
              Status: install ok installed
              Priority: extra
              Section: net
              ...
              Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libnetfilter-queue1 (>= 0.0.15), libnfnetlink0 (>= 0.0.40), libpcre3 (>= 7.7), libstdc++6 (>= 4.4.0), zlib1g (>= 1:1.1.4), iptables, java6-runtime
              ...

              [img width=400 height=326]http://img710.imageshack.us/img710/6513/themes.png[/img]


              The Gui with the logo.png can be found /usr/share/java/ipblockUI.jar.

              Opening with the Ark: ark /usr/share/java/ipblockUI.jar
              logo.png is in /ipblockui/resources/logo.png.


              Sources etc. > PPA for uljanow
              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment


                #8
                Re: Transparent icon not transparent in System Tray

                I believe this bug is in Sun's code and still open. Seeing that Sun's JDK uses GTK libs, I expect this would apply to us KDE users also

                https://bugs.launchpad.net/ublogger/+bug/424326

                Comment


                  #9
                  Re: Transparent icon not transparent in System Tray

                  Originally posted by Rog131
                  The Gui with the logo.png can be found /usr/share/java/ipblockUI.jar.

                  Opening with the Ark: ark /usr/share/java/ipblockUI.jar
                  logo.png is in /ipblockui/resources/logo.png.
                  Took a look at logo.png in Gwenview and in Gimp. It has a transparent background as well. Transparency is transparency, and .png is .png. The icon is being placed in the System Tray, so why isn't the transparency being respected?
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Transparent icon not transparent in System Tray

                    Originally posted by Rog131
                    Searching - this old Mandriva user board topic > KDE Tray Icons Have White Background [solved] is telling that the non KDE (or non Qt) applications could have hickups with the KDE color/transparency system.
                    I guess this also explains why my pidgin (only non-qt app with sys-tray icon, that i am using) icon doesn't have transparent background.

                    Comment


                      #11
                      Re: Transparent icon not transparent in System Tray

                      Took a look at logo.png in Gwenview and in Gimp. It has a transparent background as well. Transparency is transparency, and .png is .png. The icon is being placed in the System Tray, so why isn't the transparency being respected?
                      The original icon inside the .jar has the transparency. You guess is as good as mine - is this an java problem ( as the "skunk's" bug link suggest) or is this a KDE problem.

                      It would be nice if the KDE/GTK/Java/Python/whatever applications would play together - but meanwhile: a workaround.

                      1) Unpacking: /usr/share/java/ipblockUI.jar

                      2) Removing the transparency (adding a black background - as i have a black panel).



                      3) Repacking the ipblockUI.jar.

                      4) Testing - seems to work.

                      Before you edit, BACKUP !

                      Why there are dead links ?
                      1. Thread: Please explain how to access old kubuntu forum posts
                      2. Thread: Lost Information

                      Comment


                        #12
                        Re: Transparent icon not transparent in System Tray

                        Here is a link to the bug in Sun's database
                        http://bugs.sun.com/bugdatabase/view...bug_id=6453521

                        Perhaps if it gets some more votes the priority might be bumped up

                        Comment


                          #13
                          Re: Transparent icon not transparent in System Tray

                          So it seems that the Sun AWT TrayIcon API was written specifically for animated icons in the system tray. How short sighted of the programmer! All they would have had to do, and even now, would need to do, is include a conditional check for animated icons. If an animated icon, process gr.fillRect(0, 0, curW, curH); else don't. Seems to me this would fix the problem once and for all.
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment

                          Working...
                          X