Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-11-16 11:47:52

invi
Member
Registered: 2006-11-16
Posts: 2

How to change the panel color?

Hi!
As the subject says: Is it possible to change the (bg)color of the xfce4-panel..., how?

Thanks!
-invi

Offline

#2 2006-11-16 13:40:12

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: How to change the panel color?

invi wrote:

Hi!
As the subject says: Is it possible to change the (bg)color of the xfce4-panel..., how?

Thanks!
-invi

You just need to add a gtk style to your ~/.gtkrc-2.0

style "panel"
{
  bg[NORMAL] = "#ff0000"
}

widget_class "*Panel*"      style "panel"
widget "*Panel*"            style "panel"
class "*Panel*"             style "panel"

Offline

#3 2006-11-16 16:46:23

invi
Member
Registered: 2006-11-16
Posts: 2

Re: How to change the panel color?

Yes, that worked!

Thank you.

Offline

#4 2009-04-26 22:18:37

BlackTornado
Member
Registered: 2009-04-26
Posts: 7

Re: How to change the panel color?

Hem... I have to up this topic...

I would change my panel color... But i can't find any .gtkrc in my home...
I have gtkrc only in /usr/share/themes, but I can't select that themes from window manager.

I can use only themes with a "Xfwm4" directory, but i can't edit anything about panel.
I'm using Xfce 4.6 on Xubuntu.

Offline

#5 2009-04-26 23:47:35

crimesaucer
Member
Registered: 2007-05-21
Posts: 103

Re: How to change the panel color?

BlackTornado wrote:

Hem... I have to up this topic...

I would change my panel color... But i can't find any .gtkrc in my home...
I have gtkrc only in /usr/share/themes, but I can't select that themes from window manager.

I can use only themes with a "Xfwm4" directory, but i can't edit anything about panel.
I'm using Xfce 4.6 on Xubuntu.

You make your own .gtkrc-2.0 file and place it in your /home/BlackTornado directory (or for the short version ~/ )


This is one of my old ~/.gtkrc-2.0 files:

style "panel"
{
  bg[NORMAL] = "#181818"
  fg[NORMAL] = "#FFFFFF"
  }

widget_class "*Panel*"      style "panel"
widget "*Panel*"            style "panel"
class "*Panel*"             style "panel"

This is the same file using a transparent image:

style "panel"
{
  bg[NORMAL] = "#181818"
  bg_pixmap[NORMAL] = "panel41.png"
  fg[NORMAL] = "#FFFFFF"
  }

widget_class "*Panel*"      style "panel"
widget "*Panel*"            style "panel"
class "*Panel*"             style "panel"

Here is the panel image I used for the .gtkrc-2.0 above (save it into your home ~/ directory)

panel41.png

Offline

#6 2009-04-27 09:12:51

BlackTornado
Member
Registered: 2009-04-26
Posts: 7

Re: How to change the panel color?

crimesaucer wrote:

cut

Thank you, it works. I tried, but I wrote wrong code tongue

And now... What i have to add to edit buttons and applet backround when pressed?  ;D
http://img144.imageshack.us/my.php?image=paneln.jpg


EDIT: Solved thanks this: http://wiki.xfce.org/it/tips

Now... Can I use different images between upper and lower panel? And how can I change menù color?

Offline

#7 2009-04-27 21:45:52

crimesaucer
Member
Registered: 2007-05-21
Posts: 103

Re: How to change the panel color?

BlackTornado wrote:
crimesaucer wrote:

cut

Thank you, it works. I tried, but I wrote wrong code tongue

And now... What i have to add to edit buttons and applet backround when pressed?  ;D
http://img144.imageshack.us/my.php?image=paneln.jpg


EDIT: Solved thanks this: http://wiki.xfce.org/it/tips

Now... Can I use different images between upper and lower panel? And how can I change menù color?

That is a good tip for using a image for panel buttons (prelight, active...etc).

I'm pretty sure that there is no way to use two different images for a different top panel and bottom panel..... and if there is a way to have two different panel images used for top and bottom panel then it would be nice to learn how to do it.....

I'm not sure if you can add a different menu background/foreground for the panel by adding a new widget_class "*", class "*", and style " " to your ~/.gtkrc-2.0 file..... you could always try.

Offline

#8 2009-05-06 21:23:04

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

Re: How to change the panel color?

In my case I had worked perfectly to replace the image of the panel, but this is cut with each component of the panel. In other words, for every appplet panel, I put the picture and see something ugly.


url: blog.desdelinux.net
twt: @elavdeveloper

Offline

#9 2009-05-13 19:00:28

crimesaucer
Member
Registered: 2007-05-21
Posts: 103

Re: How to change the panel color?

xfcelav wrote:

In my case I had worked perfectly to replace the image of the panel, but this is cut with each component of the panel. In other words, for every appplet panel, I put the picture and see something ugly.

If the image you use is only 1 pixel wide then it will repeat smoothly for every section of the panel and all of the buttons. This works well with transparent images, vertical gradient images, and panel patterns like horizontal stripes.

Offline

#10 2011-12-15 21:29:15

jimwg
Member
Registered: 2011-12-11
Posts: 67

Re: How to change the panel color?

Seasons Greetings!

Is there any app that could render the panel opaque or transparent like in Gnome?

Thanks for any hint!

JimWG

Offline

#11 2011-12-16 03:11:36

chengshiding
Member
Registered: 2011-12-14
Posts: 21

Re: How to change the panel color?

Yes, it is a good solutions to change the color of panel, but how have the color of menu bring into correspondence with panel?
thanks.

Offline

Board footer

Powered by FluxBB