Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-06-04 13:43:12

Ailurus
Member
Registered: 2011-05-19
Posts: 42

[Solved] Changing theme settings, but which one

Hey,

I'm trying to change a specific theme setting of the Clearlooks theme. The thing is, I have a panel with some launchers in it. When the cursor moves over these launchers, a grey box is drawed around them:

DesktopXfce.png

I'd like this box to be transparent (or no box at all, same result). I know this is possible since other themes have this property, but I can't seem to find the right setting in the gtkrc file:

$ locate Clearlooks
/usr/share/themes/Clearlooks
/usr/share/themes/Clearlooks/gtk-2.0
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc

Offline

#2 2011-06-11 12:51:38

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

Hmm, I worked on this issue with someone with some knowledge of themes. He said that this transparency is not a setting, but a pixmap (transparent png file). Can pixmaps be used with this theme, or is it not possible?

Offline

#3 2011-07-03 21:22:16

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

I hate to bump this topic again, but I really would like to know how to set the launcher background to transparent smile

Offline

#4 2011-07-03 22:26:09

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

Re: [Solved] Changing theme settings, but which one

You can try a custom style on the XfceArrowButton widget class.

Offline

#5 2011-07-04 17:42:28

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

Thanks, but I'm not entirely sure how to do such a thing. I found this reference manual on the subject, I suspect I should either use xfce_arrow_button_new () or xfce_arrow_button_set_arrow_type ()? Could you provide an example?

Offline

#6 2011-07-04 19:27:39

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

Re: [Solved] Changing theme settings, but which one

look in the gtkrc of clearlooks, this has nothing to do with the api docs.

Offline

#7 2011-07-04 21:06:15

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

Nick wrote:

look in the gtkrc of clearlooks, this has nothing to do with the api docs.

Yeah the point is, as far as I know there is nothing in the Clearlooks gtkrc file that has anything to do with this -- that's why I started this topic in the first place. Should I define it myself? I know next to nothing about gtk themes or engines, so any reference is more than welcome.

Offline

#8 2011-07-19 10:55:41

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

Nick wrote:

You can try a custom style on the XfceArrowButton widget class.

My last attempt to fix this problem -- could you give an example, or perhaps a reference, how to accomplish this? Is it even possible using the Clearlooks theme? Please provide some more details, documentation, because I couldn't do much with your previous replies. Thanks!

Offline

#9 2011-08-08 14:43:52

Ailurus
Member
Registered: 2011-05-19
Posts: 42

Re: [Solved] Changing theme settings, but which one

Thanks to my friend Sam the problem is now solved. For people who are interested:

Edit the gtkrc from the Clearlooks theme (if this is the theme you're using). Then, search for something like this

style "button" {
    xthickness = 3
    ythickness = 3

    bg[NORMAL]        = shade (1.04, @bg_color)
    bg[PRELIGHT]      = shade (1.06, @bg_color)
    bg[ACTIVE]        = shade (0.85, @bg_color)
}

and replace it with something like this:

style "button" {
    xthickness = 3
    ythickness = 3

    bg[NORMAL]        = shade (1.04, @bg_color)
    
        engine "pixmap"
  {
    image
    {
      function            = BOX
      state            = PRELIGHT
      recolorable        = TRUE
      file            = "button-prelight.png"
      border            = { 8, 8, 5, 9 }
      stretch            = TRUE
    }
     image
    {
      function            = BOX
      state            = ACTIVE
      recolorable        = TRUE
      file            = "button-pressed.png"
      border            = { 8, 8, 5, 9 }
      stretch            = TRUE
    }    
 }

}

You can create those .png files yourself, however, make sure they are in the same directory as the gtkrc file.

Now, your xfce4-panel looks like this when your mouse is over one of the launchers (in this case, it's the settings launcher):
DesktopCheck3.png

Last edited by Ailurus (2011-08-08 14:45:54)

Offline

Board footer

Powered by FluxBB