Colleague You gespadas published on his blog a tip to change the color of the background that brings the text of the icons in the Xfce desktop, and make them look much prettier.
The trick we can find in the file README de xfdesktop and is the following: In the file .gtkrc-2.0 within our / Home, we must put the following lines:
[Code]Transparent icons
style "xfdesktop-icon-view" {
XfdesktopIconView :: label-alpha = 20
XfdesktopIconView :: selected-label-alpha = 100
XfdesktopIconView :: ellipsize-icon-labels = 1
XfdesktopIconView :: tooltip-size = 128
XfdesktopIconView :: shadow-x-offset = 1
XfdesktopIconView :: shadow-y-offset = 1
XfdesktopIconView :: shadow-color = "# 000000"
XfdesktopIconView :: selected-shadow-x-offset = 2
XfdesktopIconView :: selected-shadow-y-offset = 2
XfdesktopIconView :: selected-shadow-color = "# 000000"
XfdesktopIconView :: cell-spacing = 6
XfdesktopIconView :: cell-padding = 6
XfdesktopIconView :: cell-text-width-proportion = 2.5
base [NORMAL] = "# 000000"
base [SELECTED] = "# 000000"
base [ACTIVE] = "# 000000"
fg [NORMAL] = "#FFFFFF"
fg [SELECTED] = "#FFFFFF"
fg [ACTIVE] = "#FFFFFF"
}
widget_class «XfdesktopIconView»Style« xfdesktop-icon-view »
To understand a little what this is about, You gespadas gives us a simple explanation of some of the most prominent elements:
label-alpha is the opacity percentage of the icon text background. If its value is zero, the background will be completely transparent, if it is 50 it will have a semi-transparency, etc.
shadow-x-offset y shadow-and-offset indicate the position of the text shadow, while shadow-color indicates its color.
cell spacing indicates the separation between each grid cell of the desktop icons, while cell padding specifies an additional space surrounding each of the icons. Both measurements are in pixels.
cell-text-width-proportion indicates the maximum proportional width of the text below the icons. For example, if the icons are 30px, a value of '2.5' would leave a maximum width of 75px for the texts.
A very wise recommendation is to place all this inside the file .gtkrc.mine, Ya que .gtkrc-2.0 it can be overwritten by an application that manages the appearance of the desktop. Although in my case it only worked with second. After we adjust the colors and others, we restart the session and that's it.
For me, with the code that I put above, it looked like this:
Exactly in which directory it is already looked in ~ / home / and there is no .gtkrc.mine file 🙁
If you can't find it, believe it.
Those files can be created manually ^^
And before ... how was it?
They have a background, without transparency, according to the Gtk theme.
Oh yeah I've used xfce, but I don't use desktop icons.
Thanks for the tuto, a question elav can you give me the link to download the icons are great.
I installed them from the repository of Debian: gnome-brave-icon-theme
Thanks for the information the icons are fabulous, the tutorial worked correctly for me.
And the Wallpapers also if it is not too much trouble.
The Wallpaper comes with xfce 4.10, I did not download it from anywhere 😀
That option should already be optional in xfce, it would honestly improve, but still the tip is very good, I had not realized that they were not transparent =)
Thanks, especially now that I'm opting for XFCE given my lack of affinity with Unity
You can also remove the background of the icons and leave it as in Gnome 2 like this:
We open the terminal and using the xfce text editor:
& leafpad ~ / .gtkrc-2.0
And we add the following
style "xfdesktop-icon-view" {
XfdesktopIconView :: label-alpha = 0
fg [NORMAL] = "#ffffff"
fg [SELECTED] = "# 000000"}
widget_class «* XfdesktopIconView *» style «xfdesktop-icon-view»
We save changes, close and restart the session, the thing will be like this, the before and after: http://s14.postimage.org/qpgsaeazl/comparison_icons01.png
regards
It is something that seemed annoying to me, I read it first on the gespadas blog, although just like you it only worked with the middle name, that if an elav correction, maybe it will work for someone:
the first name is -gtkrc-2.0.mine
Well, I was in doubt, because I have the file gtkrc.mine and it works for me with other things. 😕
Well, it didn't work for me in .gtkrc.mine and since I didn't have the .gtkrc-2.0 file, I had to create it and it did work there.
Good tutorial, it has been useful to me.
The data seems very good to me, do you know if there is any documentation with all the parameters that can be configured from there? I have searched but I can not find anything very complete that is said.
Hi, how are you?
Do you know any way to make the text of the icons can have two lines instead of just one? (in kde it can be configured so that the text of the icons comes out in 2 lines). I don't know if there would be an equivalent here.
Thank you.
Good!.
I have a problem.
Neither .gtkrc.mine nor gtkrc-2.0 appears, and creating them and adding the code you provide does not change the background of the icons either. What I do?