Author Topic: trayicon does not show properly  (Read 5867 times)

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
trayicon does not show properly
« on: December 07, 2010, 23:34:31 »
Hello Quentin,

I am using the elementary icon set and the trayicon is somehow too dark.
Here is a screenshot: http://db.tt/h7T6uiV
I am using the xfce4-panel 4.6.4.

Thank you ,
Vlad
« Last Edit: January 28, 2011, 19:56:25 by DonVla »

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: trayicon does not show properly
« Reply #1 on: December 08, 2010, 15:49:11 »
hey vlad,
as the author of that theme i can tell you that there are two variants of the trayicon in the theme-folder (one bright, one dark). i just very recently decided to switch to the dark one by default.
either just rename the bright trayicon to be used (in /usr/share/gmusicbrowser/pix/elementary) or put the icon you prefer in /home/$USER/.config/gmusicbrowser/icons/ (create the folder if non-existent). icons in that folder override the icons of the theme you set in gmusicbrowser.

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: trayicon does not show properly
« Reply #2 on: December 08, 2010, 20:48:33 »
Hi,

thanks for your reply.
I moved the elementary iconset to the .config/gmb/icons folder, but no change.
I also renamed/removed the trayicon.png file - now trayicon.png and trayicon_dark.png are the same file.
However, no change. Any other suggestions?

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: trayicon does not show properly
« Reply #3 on: December 09, 2010, 01:05:34 »
no need to move the whole icon set, just put the trayicon you want in ~/.config/gmusicbrowser/icons/trayicon.png, it should work.

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: trayicon does not show properly
« Reply #4 on: December 09, 2010, 04:26:22 »
Thanks Quentin and ochosi.

Putting only a trayicon file into config/gmb did the trick.
However, there is still a black frame around the icon: http://db.tt/PvQw8Ma
This occurs with every icon set.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: trayicon does not show properly
« Reply #5 on: December 09, 2010, 17:22:27 »
i assume you're using gnome, so here's how you get the transparency to work there: edit the file /usr/bin/gmusicbrowser with an editor of your choice (and superuser rights) and uncomment line 6467. that's all.

i guess as soon as xubuntu 11.04 is released next april i'll have this behaviour by default because the tray-transparency will then work the same way for xfce and gnome-panel.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: trayicon does not show properly
« Reply #6 on: December 09, 2010, 23:26:01 »
as quentin pointed out to me very correctly you didn't say what version you're using (i assumed you were using the version from my shimmer-ppa, which has that issue).

so, go ahead and look for this line in /usr/bin/gmusicbrowser
#Layout::Window::make_transparent($TrayIcon) if $CairoOK;

and remove the leading hash.

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: trayicon does not show properly
« Reply #7 on: December 10, 2010, 23:18:47 »
You're right, sorry. I am using the recent/last git version (20101207) on ArchLinux.
I had a look and this line is uncommented in the git version I'm using.

robber49

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: trayicon does not show properly
« Reply #8 on: December 11, 2010, 06:31:35 »
I just took a look, I don't think that's the right line for the latest git version. Maybe 6528?

BTW I'm using tint2 for my systray and I've got the black background also.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: trayicon does not show properly
« Reply #9 on: December 11, 2010, 14:48:26 »
@robber: i know the absolute line number i gave in my previous reply is useless, that's why i reposted the line directly.
about tint2: you can try un/commenting that line, for "older" panels like xfce <=4.6 and lxde's panel this line breaks the trayicon transparency, in gnome and xfce >4.7 it's the opposite.

at least that's the point we reached when we last discussed this topic on the forum.

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: trayicon does not show properly
« Reply #10 on: December 11, 2010, 18:31:13 »
Thanks ochosi.

Commenting the line you mentioned earlier did the trick.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [solved] - trayicon does not show properly
« Reply #11 on: December 12, 2010, 21:39:52 »
no problem.
solved for you too robber49?

robber49

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [solved] - trayicon does not show properly
« Reply #12 on: December 14, 2010, 19:59:37 »
I didn't notice you posted the actual line ochosi :)

I actually didn't have to comment that line, I put the light colored tray icon in my ~/.config/gmusicbrowser/icons/ folder and transparency worked.

(with the current GIT version / v1.1.6)

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [solved] - trayicon does not show properly
« Reply #13 on: December 14, 2010, 21:34:09 »
okeydokey, good to hear :)

DonVla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: trayicon does not show properly
« Reply #14 on: January 28, 2011, 19:56:10 »
Hello,

This issue is still not solved.
I am using now xfce4-panel version 4.8.0 and the icon still does not show properly.
I had to comment the line mentioned above again and and add the trayicon i want to ~/.config/gmusicbrowser/icons,
 else no icon is displayed. I am using today's git version (20110128 - commit b4e3817fb2860674c16fc3b1bb64f3d45260ce35).

Thanks in advance.
« Last Edit: January 28, 2011, 19:58:23 by DonVla »