Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-08-11 15:35:54

xfcelav
Member
From: /var/www/xfcelav
Registered: 2008-04-10
Posts: 96
Website

[Solved] How remove the white background of systray?

Greetings:
I'm using Xfce 4.8 on Debian and no matter the Gtk theme put, the bottom of the systray icons, always white. You do not see much when the panel has a white or clear, but when the panel has a dark color, it looks pretty ugly.

Is there any way to fix this?

Last edited by xfcelav (2011-08-11 15:37:02)


url: blog.desdelinux.net
twt: @elavdeveloper

Offline

#2 2011-08-12 06:15:19

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] How remove the white background of systray?

Enable compositing.

Offline

#3 2011-08-13 01:31:33

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

Sounds similar to this post : http://forum.xfce.org/viewtopic.php?id=6169


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#4 2011-08-13 04:51:16

Vastone
Member
Registered: 2011-08-03
Posts: 50

Re: [Solved] How remove the white background of systray?

angstrom wrote:

Sounds similar to this post : http://forum.xfce.org/viewtopic.php?id=6169


It is the same issue and composoting is enabled, including several different compositors, all with the same results...

Offline

#5 2011-08-13 09:43:22

stqn
Member
Registered: 2010-10-11
Posts: 174

Re: [Solved] How remove the white background of systray?

When you say "the bottom of the systray icons", do you mean "the background"? Here I've noticed that when I change the Gtk theme, the systray icons background stays the same colour (as defined by the previous theme.) So if your previous theme had a white background then it would stay white.

Activating compositing does set the colour right, but that's because everything is redrawn I think (going back to no compositing keeps the right colour, though with compositing some icons have a lighter grey than others so it looks like drawing is handled differently...)

I also have other problems with the systray icons, but I don't know if that's caused by a panel bug or by bugs in the applications.

(I'm sure none of this helps -- just saying "I have problems too" I guess smile.)

Offline

#6 2011-08-13 16:03:46

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

Do you have the snapshot of the probleme ?

I don't have composing enabled but my panel is normal ....
Version : xfce4-panel        4.8.1-5.8.1
zz3c.png
zz4x.png
zz5.png

Problem with your theme configuration file ?


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#7 2011-08-13 17:17:50

Vastone
Member
Registered: 2011-08-03
Posts: 50

Re: [Solved] How remove the white background of systray?

As I stated earlier, it happens with all themes..  No matter if I use Solid Color or None (use system style) in panel preferences, it remains the same

It only happens when the mouse is hovered over it.  At all other times it is correct.

It only happens on Launchers, not on any other panel types

Here is a screenshot of the problem.. 

screenshot-08132011-120842pm.png

Offline

#8 2011-08-13 22:18:45

demosthenese
Member
From: Liverpool, UK
Registered: 2009-05-04
Posts: 71

Re: [Solved] How remove the white background of systray?

From your picture, I think you mean the panel not the tray. Have a look at

http://wiki.xfce.org/tips

In particular the editing ~/.gtkrc section. This will allow you to edit the colours of the panel, overriding the colours set by the theme.

Offline

#9 2011-08-13 23:29:44

Vastone
Member
Registered: 2011-08-03
Posts: 50

Re: [Solved] How remove the white background of systray?

demosthenese wrote:

From your picture, I think you mean the panel not the tray. Have a look at

http://wiki.xfce.org/tips

In particular the editing ~/.gtkrc section. This will allow you to edit the colours of the panel, overriding the colours set by the theme.


Right...

I have this issue opened here

http://forum.xfce.org/viewtopic.php?id=6169

and thought I was in that thread when I responded...

I have looked all through

http://wiki.xfce.org/tips

area and have changed gtkrc section to at least a hundred different setups without success..  I can verify that the process is working because when I make a change to the .gtkrc  file and add an image as a background, it works... But even with an image, the Launchers only still show a white background...

It appears that there is not a specific setting that can manipulate the backgrounds of the Launchers in the panel, or at least none that I have found as of yet..

I appreciate the reply and suggestions

Offline

#10 2011-08-14 02:24:35

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

Let try this :
Save this image in your home folder : http://img99.imageshack.us/img99/6641/p … nhover.png
It's a transparent 48x24px  Png  file. Name it panel-button-hover.png

Put this on your ~/.gtkrc-2.0

 style "mypanel" 
{
      engine "pixmap"
        {
                image
                {
                        function                = BOX
                        recolorable             = TRUE
                        state                   = PRELIGHT
                        file                    = "panel-button-hover.png"
                        border                  = { 1, 1, 0, 0 }
                        stretch                 = TRUE
                }
        }
}

widget "*Xfce*Panel*"                style "mypanel"
class "*Xfce*Panel*"                style "mypanel"
widget "*PanelWidget*"              style "mypanel"
widget "*PanelApplet*"              style "mypanel"
widget "*fast-user-switch*"         style "mypanel"
widget "*CPUFreq*Applet*"           style "mypanel"
widget "*indicator-applet*"         style "mypanel"
class "PanelApp*"                   style "mypanel"
class "PanelToplevel*"              style "mypanel"
widget_class "*PanelToplevel*"      style "mypanel"
widget_class "*notif*"              style "mypanel"
widget_class "*Notif*"              style "mypanel"
widget_class "*Tray*"               style "mypanel"
widget_class "*tray*"               style "mypanel"
widget_class "*computertemp*"       style "mypanel"
widget_class "*Applet*Tomboy*"      style "mypanel"
widget_class "*Applet*Netstatus*"   style "mypanel"

Re-log or change your Appearance theme to a temporary theme and switch back to your original theme.
Cross your finger and move your mouse over the launcher ...

I obtain this on my netbook :
zz6c.png


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#11 2011-08-14 02:37:45

Vastone
Member
Registered: 2011-08-03
Posts: 50

Re: [Solved] How remove the white background of systray?

angstrom wrote:

Let try this :
Save this image in your home folder : http://img99.imageshack.us/img99/6641/p … nhover.png
It's a transparent 48x24px  Png  file. Name it panel-button-hover.png

Put this on your ~/.gtkrc-2.0

 style "mypanel" 
{
      engine "pixmap"
        {
                image
                {
                        function                = BOX
                        recolorable             = TRUE
                        state                   = PRELIGHT
                        file                    = "panel-button-hover.png"
                        border                  = { 1, 1, 0, 0 }
                        stretch                 = TRUE
                }
        }
}

widget "*Xfce*Panel*"                style "mypanel"
class "*Xfce*Panel*"                style "mypanel"
widget "*PanelWidget*"              style "mypanel"
widget "*PanelApplet*"              style "mypanel"
widget "*fast-user-switch*"         style "mypanel"
widget "*CPUFreq*Applet*"           style "mypanel"
widget "*indicator-applet*"         style "mypanel"
class "PanelApp*"                   style "mypanel"
class "PanelToplevel*"              style "mypanel"
widget_class "*PanelToplevel*"      style "mypanel"
widget_class "*notif*"              style "mypanel"
widget_class "*Notif*"              style "mypanel"
widget_class "*Tray*"               style "mypanel"
widget_class "*tray*"               style "mypanel"
widget_class "*computertemp*"       style "mypanel"
widget_class "*Applet*Tomboy*"      style "mypanel"
widget_class "*Applet*Netstatus*"   style "mypanel"

Re-log or change your Appearance theme to a temporary theme and switch back to your original theme.
Cross your finger and move your mouse over the launcher ...

I obtain this on my netbook :
http://img64.imageshack.us/img64/1801/zz6c.png

Worked perfectly...

I had tried something very similar to this but did not have all of the widget and class levels that you have

I cannot tell you HOW frustrating this had been, would probably get me booted from here, but I can tell you that I really appreciate this!   

Thanks so much!!

Offline

#12 2011-08-14 08:23:46

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

Cool !
So it worth my night, as I'm not a theme guru ... I was just lucky that one of my old theme have those lines :-)
And I understand "HOW frustrating this had been" because there is no log, verbose, no feedback, debug option and you have to login logout most of the time  (yeah, I really spent my night lol !).
I spent 2h to get my transparency working because one day I put export XLIB_SKIP_ARGB_VISUALS=1 on my .profile and all my transparency was solid black ...


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#13 2011-08-14 08:45:35

Vastone
Member
Registered: 2011-08-03
Posts: 50

Re: [Solved] How remove the white background of systray?

angstrom wrote:

Cool !
So it worth my night, as I'm not a theme guru ... I was just lucky that one of my old theme have those lines :-)
And I understand "HOW frustrating this had been" because there is no log, verbose, no feedback, debug option and you have to login logout most of the time  (yeah, I really spent my night lol !).
I spent 2h to get my transparency working because one day I put export XLIB_SKIP_ARGB_VISUALS=1 on my .profile and all my transparency was solid black ...

I finally found exactly where it was at... I had been focusing on anything panel related to all gtrkc files I was looking at..  I then switched to a very basic xfce theme that put a light blue background..  I then traced that to

style "button"

bg[PRELIGHT]    = "cce2ff"

Now that I traced the where... in the theme I use it was this...

Prelight = file "/button/button-prelight.png" 

Too much focus on panel and not the button area...

I simply commented that line out and it was fixed...

That is what I had been asking for all along, was the where...  and a process of elimination finally got me to it...

I sure appreciate your help.. Your code helped me to narrow it down...

Last edited by Vastone (2011-08-14 09:06:01)

Offline

#14 2011-08-14 09:43:06

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

It would be great if you could put the fruit of your tests and time on the xfce wiki. Just put a kind of "what parameter do what ?" Or what widget/class level apply on the xfce panel.

I think it will be really appreciated because there is very few words about this, even on the entire net.


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#15 2011-08-15 14:16:30

xfcelav
Member
From: /var/www/xfcelav
Registered: 2008-04-10
Posts: 96
Website

Re: [Solved] How remove the white background of systray?

Well. Thank you very much all for now I've solved it by turning on the composer, but always have an alternative for when you deactivate it.

Thanks.


url: blog.desdelinux.net
twt: @elavdeveloper

Offline

#16 2011-08-16 06:28:42

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] How remove the white background of systray?

I will look in to a better solution for this.

Offline

#17 2011-08-21 09:02:58

Occasional_visitor
Member
Registered: 2011-08-21
Posts: 1

Re: [Solved] How remove the white background of systray?

@angstrom
@Vastone
Did this solution cure taskbar buttons transparency problem? On the screenshot from http://forum.xfce.org/viewtopic.php?pid=22652#p22652 they have gray background rather than transparent one. (Grey button with "Launcher" label)

Offline

#18 2011-08-21 10:38:46

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: [Solved] How remove the white background of systray?

For activated button, it seems to be resolved on the other thread http://forum.xfce.org/viewtopic.php?id=6169
I don't know if it works with the taskbar buttons ...

So your final ~/.gtkrc-2.0 will look something like this :

style "mypanel" 
{
      engine "pixmap"
        {
                image
                {
                        function                = BOX
                        recolorable             = TRUE
                        state                   = PRELIGHT
                        file                    = "panel-button-hover.png"
                        border                  = { 1, 1, 0, 0 }
                        stretch                 = TRUE
                }
                image
                {
                        function                = BOX
                        recolorable             = TRUE
                        state                   = ACTIVE
                        file                    = "panel-button-hover.png"
                        border                  = { 1, 1, 0, 0 }
                        stretch                 = TRUE
                }
        }
}

widget "*Xfce*Panel*"                style "mypanel"
class "*Xfce*Panel*"                style "mypanel"
widget "*PanelWidget*"              style "mypanel"
widget "*PanelApplet*"              style "mypanel"
widget "*fast-user-switch*"         style "mypanel"
widget "*CPUFreq*Applet*"           style "mypanel"
widget "*indicator-applet*"         style "mypanel"
class "PanelApp*"                   style "mypanel"
class "PanelToplevel*"              style "mypanel"
widget_class "*PanelToplevel*"      style "mypanel"
widget_class "*notif*"              style "mypanel"
widget_class "*Notif*"              style "mypanel"
widget_class "*Tray*"               style "mypanel"
widget_class "*tray*"               style "mypanel"
widget_class "*computertemp*"       style "mypanel"
widget_class "*Applet*Tomboy*"      style "mypanel"
widget_class "*Applet*Netstatus*"   style "mypanel"

Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#19 2011-10-29 11:21:23

Xfce_newcomer
Member
Registered: 2011-10-29
Posts: 1

Re: [Solved] How remove the white background of systray?

Nick, is there any chance of that the ~/.gtkrc-2.0 from the post above will be in by the time xfce 4.10 happens? It makes the desktop look really nice and does not require a plenty of work from developers!

Offline

#20 2012-02-18 11:40:01

Lesters
Member
Registered: 2012-02-18
Posts: 1

Re: [Solved] How remove the white background of systray?

May this feature make xfce 4010?

Offline

#21 2013-07-20 18:01:16

mfaridi
Member
Registered: 2013-07-20
Posts: 1

Re: [Solved] How remove the white background of systray?

I use Arch linux and XFCE 4.10 ,I put above code in my gtkrc but nothing happen , and my icons in panel2 have white border ,but i need icon do not have border  ,I need my panel like this

http://www.zimagez.com/zimage/screensho … 0842pm.php

Last edited by mfaridi (2013-07-20 18:01:48)

Offline

#22 2013-11-05 13:34:11

jyu2uh
Member
Registered: 2013-11-05
Posts: 1

Re: [Solved] How remove the white background of systray?

mfaridi wrote:

I use Arch linux and XFCE 4.10 ,I put above code in my gtkrc but nothing happen , and my icons in panel2 have white border ,but i need icon do not have border  ,I need my panel like this

http://www.zimagez.com/zimage/screensho … 0842pm.php

You might miss the part of downloading that transparent file

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 645.31 KiB (Peak: 678.16 KiB) ]