How can I change the text colour on my desktop icons?

9,152

I'm on Ubuntu 11.10, Unity 3D mode. To change the color of desktop icon text, I used a text editor (gedit) to edit nautilus.css found here: usr/share/themes/Ambiance/gtk-3.0/apps/nautilus.css. The file I have has 81 lines with sections called desktop mode, browser window, and sidebar.

In the "desktop mode" section (lines 1-27), I edited lines 3, 12, and 20 affecting @bg_color, @fg_color, and @selected_fg_color, respectively. The color value can be expressed in words for standard colors such as black, green, red, yellow, etc. Or, you can use hex code in which case black would be #000000, for example.

In case the line numbers I cited don't match @bg_color, @fg_color, and @selected_fg_color,you may have to poke around a bit!

It's not easy for me to describe without knowing the correct technical terms but:

  • @bg_color affects the desktop icon text when not single- or double-clicked;

  • @fg_color affects the desktop icon text (i) when the icon is double-clicked (and the corresponding file is open), and even in some other situations which you'll have to figure out; and

  • @selected_fg_color affects the desktop icon text when the icon is single-clicked until something else is clicked.

I'm not really sure, but you may have to log out and log in to see the changes. Also, as suggested above, do back up the file before editing it.

Share:
9,152

Related videos on Youtube

Jorge Castro
Author by

Jorge Castro

Updated on November 21, 2022

Comments

  • Jorge Castro
    Jorge Castro over 1 year

    How can I change the text font colour of my icons on my desktop. I have used gnome-color-chooser by choosing "Desktop" panel and changing to white colour on Colorize with but unfortunately, nothing was changed.

    Please what can I do?

  • jwdinkc
    jwdinkc over 12 years
    You can - it's a pain. My way is posted as an answer though it's vague. Hopefully someone can post an easier or more specific solution.