How to make XFCE desktop icons text transparent

xfce

I have openSUSE 13.2 which comes with KDE as default. I want to try new desktop environments so I started XFCE. When the XFCE desktop starts the icon names on the desktop are not transparent. How to make this text transparent ?

Best Answer

This is a very known issue on the Internet so here are the steps:

1- Open the terminal and execute sudo vi .gtkrc-2.0. (You can choose your own text editor.

2- Press a and go to the end of the file.

3- Copy and paste the following style script

style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0
XfdesktopIconView::selected-label-alpha = 170

base[NORMAL] = "#cccccc"
base[SELECTED] = "#cccccc"
base[ACTIVE] = "#cccccc"

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#000000"
fg[ACTIVE] = "#000000"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

4- Press Esc and then :wq to save the file.

Source

P.S.: If you copied the style from the website it won't work. It appears that the double quotation mark is not THE quotation mark so I changed them all and posted it here.

Related Question