xfdesktop text translucency

Brian J. Tarricone bjt23 at cornell.edu
Sat May 20 22:58:15 CEST 2006

Hash: SHA1

Hi All,

Brian J. Tarricone wrote:

> Anyway, it's done.  The default is to be around 60% opaque.  In theory,
> you can change it with a gtk style property.  Just add something like:
> style "xfdesktop-icon-view" {
>     XfdesktopIconView::label-alpha = 100
> }
> widget_class "*" style "xfdesktop-icon-view"
> to your ~/.gtkrc-2.0 file.  The allowable values are 0 (totally
> transparent) to 255 (totally opaque).  At least, that should work, but
> it doesn't.  If someone understands how style properties work better
> than I do, please reply here and let me know the right way.

Ok, this should be working now.  That above syntax should work, but you
can also do:

style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 100
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

That last bit may or may make gtk's theme system work 0.00001% faster.
I have no idea.  Anyway, it was a coding error on my part, not a
misunderstanding with how theming works.

While I'm here, if you want to change the both the text color and label
alpha, this should do the trick:

style "xfdesktop-icon-view" {
    fg[NORMAL] = "#ff0000"
    fg[SELECTED] = "#ff0000"
    fg[ACTIVE] = "#ff0000"
    XfdesktopIconView::label-alpha = 100
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

Obviously, replace the color values with something you like.  Make sure
to use "*XfdesktopIconView*" as your widget_class, and not "*", or it'll
get applied to all widgets.

I'll add all this stuff to the README.


Version: GnuPG v1.4.3 (GNU/Linux)


More information about the Xfce4-dev mailing list