Author Topic: (Solved) The new systray icons  (Read 1330 times)

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
(Solved) The new systray icons
« on: August 17, 2010, 09:04:25 AM »
Where are the 4.5 systray icons stored?

They are simple and elegant if your systray has a dark background -- as it will in most themes -- but if you (with superhuman effort) have managed to give your systray a transparent background they don't look good at all. They are actually hard to distinguish and they clash with the more normal icons in the same systray.

So I'd like to edit them. But I can't find them.
« Last Edit: August 18, 2010, 05:48:46 AM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline cyrwyn

  • Hero Member
  • *****
  • Posts: 837
Re: The new systray icons
« Reply #1 on: August 17, 2010, 09:38:43 AM »
Look in /usr/share/icons
Using Linux for over 18 years and still counting.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: The new systray icons
« Reply #2 on: August 17, 2010, 09:40:24 AM »
I have. (That's were I started.)
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: The new systray icons
« Reply #3 on: August 17, 2010, 12:22:16 PM »
blackbird

I don't have time to look closer at this but I have klipper in the tray

Code: [Select]
[gert@localhost ~]$ locate klipper
/home/gert/.kde4/share/apps/klipper
/home/gert/.kde4/share/apps/klipper/history2.lst
/home/gert/.kde4/share/config/klipperrc
/home/gert/Documents/101816-klipper_configure_1.png
/usr/bin/klipper
/usr/lib/libkdeinit4_klipper.so
/usr/share/applications/kde4/klipper.desktop
/usr/share/apps/desktoptheme/default/icons/klipper.svgz
/usr/share/apps/kconf_update/klipper-kconfigxt.upd
/usr/share/autostart/klipper.desktop
/usr/share/doc/HTML/en/klipper
/usr/share/doc/HTML/en/klipper/common
/usr/share/doc/HTML/en/klipper/index.cache.bz2
/usr/share/doc/HTML/en/klipper/index.docbook
/usr/share/doc/HTML/en/klipper/screenshot.png
/usr/share/icons/hicolor/128x128/apps/klipper.png
/usr/share/icons/hicolor/16x16/apps/klipper.png
/usr/share/icons/hicolor/32x32/apps/klipper.png
/usr/share/icons/hicolor/48x48/apps/klipper.png
/usr/share/icons/hicolor/64x64/apps/klipper.png
/usr/share/icons/oxygen/128x128/apps/klipper.png
/usr/share/icons/oxygen/16x16/apps/klipper.png
/usr/share/icons/oxygen/22x22/apps/klipper.png
/usr/share/icons/oxygen/32x32/apps/klipper.png
/usr/share/icons/oxygen/48x48/apps/klipper.png
/usr/share/icons/oxygen/64x64/apps/klipper.png
[gert@localhost ~]$

May be helpfull  ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: The new systray icons
« Reply #4 on: August 17, 2010, 01:04:51 PM »
Thanks, wedgeling,

The icons are in /usr/share/apps/desktoptheme/default/icons. This is a big step forward.

(I had tried to locate the icon of the wrong program. I looked at every icon on my system with "kmix" or "sound" or "mixer" in its name, but this kmix icon is called audio.svgz.)

This can be interesting: I've neveer edited an SVG file, let alone a gzipped SVG archive. On the other hand I only want to change the colours.
« Last Edit: August 17, 2010, 01:54:27 PM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: The new systray icons
« Reply #5 on: August 17, 2010, 07:42:35 PM »
blackbird
I know the feeling on finding icons, some weeks ago I wanted to change the colour on a couple of Konki 'filing cabinets' so I could distinguish between normal and su.  In the end I gave up when somebody did point me in the right direction but by then I had much more pressing problem and I still have to change colours (one day).

Don't forget to tell how you get on?  :)
« Last Edit: September 08, 2010, 03:03:38 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: The new systray icons
« Reply #6 on: August 18, 2010, 09:52:05 AM »
blackbird
I know the feeling on finding icons, some weeks ago I wanted to change the colour on a couple of Konki 'filing cabinets' so I could distinguish between normal and su.  In the end I gave up when somebody dis point me in the right direction but by then I had much more pressing problem and I still have to change colours (one day).

Don't forget to tell how you get on?  :)

Editing the colours of klipper.svgz turned out to be easy using Inkscape. (Making it look really good will be more difficult.)

Editing the colours of audio.svgz wasn't much harder, but strangely enough replacing the old files with the edited ones gave different results: the edited klipper icon appeared in the systray on the next login; the new audio one didn't even after a reboot. The old icon is still there even if it doesn't exist in the /usr/share/apps/desktoptheme/default/icons directory. It must be cached somewhere.

Of course the two icons are a bit different: audio.svgz contains several pics, klipper.svgz only one.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

musonio

  • Guest
Re: (Solved) The new systray icons
« Reply #7 on: August 18, 2010, 11:42:50 AM »
Could you post your modified icons as images please?

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: (Solved) The new systray icons
« Reply #8 on: August 18, 2010, 01:33:06 PM »
Could you post your modified icons as images please?

When I've managed to make them a bit prettier. Also note that so far the single-pic icons work, the multi-pic don't.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

musonio

  • Guest
Re: (Solved) The new systray icons
« Reply #9 on: August 18, 2010, 02:23:48 PM »
Also note that so far the single-pic icons work, the multi-pic don't.


Wel then, get on with it!  ;D

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: (Solved) The new systray icons
« Reply #10 on: August 18, 2010, 09:33:39 PM »
blackbird

" Also note that so far the single-pic icons work, the multi-pic don't."

What is a multi-pic ??
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: (Solved) The new systray icons
« Reply #11 on: August 19, 2010, 02:01:09 AM »
blackbird

" Also note that so far the single-pic icons work, the multi-pic don't."

What is a multi-pic ??

It's not an official term, but ...

An icon like klipper.svgz is a compressed version of one single image in Scalable Vector Graphics format, which means that it is actually a gzipped text file defining how the image should look.

The look of audio.svgz, on the other hand, varies depending on the volume settings in kmix. Traditionally such variations have been achieved by using several different icons. (E.g. one icon for a full trashcan and one for an empty one.)

In the case of files like audio.svgz, however, all the different versions of the icon are to be found in the same file/archive, so audio.svgz actually contains five different pictures. They are all easy to edit with Inkscape, but I haven't been able to create the archive in such a way that the icon would work as intended.

I simply don't know enough about the SVG format yet, and I've only used Inkscape for an hour and a half.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline g.nixdorf

  • Jr. Member
  • **
  • Posts: 27
Re: (Solved) The new systray icons
« Reply #12 on: August 19, 2010, 03:19:45 AM »
A simple way to show the icons from your icon theme in the systray is to delete the folder:

/usr/share/apps/desktoptheme/default/icons

Then you'll have the colored icons back.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: (Solved) The new systray icons
« Reply #13 on: August 19, 2010, 06:05:00 AM »
A simple way to show the icons from your icon theme in the systray is to delete the folder:

/usr/share/apps/desktoptheme/default/icons

Then you'll have the colored icons back.

Yes, but they won't be my newly edited icons....

Actually, I've found that if I just remove /usr/share/apps/desktoptheme/default/icons/audio.svgz I'll get my the old kmix icon back while retaining my simpler edited icons in the same directory.

But if I, on the other hand, replace the original /usr/share/apps/desktoptheme/default/icons/audio.svgz with my new one it will still look like the old one in the systray. I take it that this is a result of how Inkscape saves the edits. I'm also certain that it could be fixed by editing the XML code directly, but at the moment that is a bit more than I'd bargained for.

So first of all, I'll play a bit more with Inkscape, and I may possibly check if I can do the editing in another SVG editor.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: (Solved) The new systray icons
« Reply #14 on: August 19, 2010, 06:13:15 AM »
blackbird
Dynamic Icons, thank you, good enough for me.  I will just remember that icons are to be treated carefully and leave modifications for the time being. Looks like klipper is a bit of dead duck to get to run properly. So the need for some cosmetics has vaned for me.

I have found information that unfortunately for me indicates that configuration now has been written into the code plus the code broke somewhere in the kde 4.x chain. Like the poster of that information  I find it a bit hard to swallow that somebody would leave you without config choices.  

Now I am hoping that I have got it really wrong somewhere because I did come to like the little pet.  :D
« Last Edit: September 08, 2010, 03:08:52 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen