In most desktop environments, colors, fonts and other visual properties of icons are individually modifiable. This is not the case with GNOME; icon text colors in GNOME are theme-dependent, which means the colors and decorations of the icon text are decided by the active GTK theme. No simple GUI tool is provided to override the active theme elements either, and the info you'll find in most places on the web on modifying (especially desktop) icon text is outdated and won't work for GNOME 2.12.x. At this point the .gtkrc-2.0 file and a few style tags to be specified in it come to rescue; whatever GTK theme properties you specify in this file will override your active theme properties.
The two most common complaints by users about GNOME desktop icon text are that it "remains white all the time" and that it has shadows which decrease readibility especially with small fonts. The dreaded white blends into light backgrounds and decreases legibility. 95% of all GTK themes out there do not modify the icon text color, so it seems to be fixed in white, whereas it can be easily tweaked. And with the method outlined below, you'll get rid of those ugly shadows forever. This may be a matter of personal preference, but I find the plain, unshaded icon text much more legible.
Here are the obligatory before / after screenshots:
Before
After
Ok, here are the steps:
1) Create a .gtkrc-2.0 file in your home folder if it does not exist.
2) Add the following lines to the file, substituting the variables appropriately:
Code:
style "desktop-icon"
{
NautilusIconContainer::frame_text = X
text[NORMAL] = "#YYYYYY"
NautilusIconContainer::normal_alpha = Z
}
class "GtkWidget" style "desktop-icon"
X = Binary value; has to be set to 1 for this tweak to take effect. Setting it to 0 will bring back the shadows and reset the font color.
YYYYYY = HTML color value. Insert the value of the color you want for the icon text here.
Z = Background color transparency value. 0 is fully transparent (recommended), 255 is fully opaque (white; I have not yet figured out a way to set the framed bg color value)
To learn the HTML code of the color you'd like to have, launch GIMP, hit the foreground color box and choose the color you'll like; its code will appear in the "HTML Notation" box.
Here's the code I used for the screenshot above:
Code:
style "desktop-icon"
{
NautilusIconContainer::normal_alpha = 0
text[NORMAL] = "#000000"
NautilusIconContainer::frame_text = 1
}
class "GtkWidget" style "desktop-icon"
3) Save the file and restart Nautilus with .
Bookmarks