Edit your existing ~/.gtkrc-2.0 file, or create one if it doesn't exist. This file will let you override parts of your selected GTK+ theme.
gedit ~/.gtkrc-2.0
Add the following style
style "treeview-modified"
{
GtkTreeView::even_row_color = "#yourcolor"
}
widget "*NautilusNavigationWindow*" style "treeview-modified"
where "#yourcolor" is obviously the color you want; #F2F1F0 is the Ambiance / Radiance toolbar color that you may be looking to blend with. You can sample other colors using Agave, the GIMP color picker or any color picker tool.
Note that due to the side pane having a frame in all modes except "Information", it will not exactly blend in other modes the way it does in that mode; at least with the default themes. With some further hacking you may be able to work around the outline color and get it to blend exactly the same way if that's what you want.
You can find out more about theme styles in the GTK Theming Tutorial.
My problem with this new ubuntu 11.10 was the fact that i was not able to change the background color of the windows, that white color just drove me crazy; as you noticed 'appearance preferences' from the old ubuntu does not exit any more here; there is a way though (or maybe more):
Here's what you have to do to change colors in ubuntu 11.10:
Open the terminal, paste
sudo apt-get install dconf-tools
then
dconf-editor
Browse to org.gnome.desktop.interface
.
Locate gtk-color-scheme
, don't click on it, click on the empty space on the right side to get a small box where you will paste the following:
bg_color:#ebe0be;selected_bg_color:#737370;base_color:#9d906a
Press enter, nothing else! The colors will change right away (this is just an example with my favourite colors).
If you wanna find your own colors, install gnome color chooser
and play with the colors (the color palette will look the same as it did in 'appearance preferences in the old ubuntu) to find out the right codes (six digit hexadecimal numbers) for the ones that you like.
Once you find yours, paste the six digit code number into the right place in gtk-color-scheme
and then enter again it is done.
Best Answer
Note: These steps won't work for GTK-2.0, which I think Ubuntu 10.04 uses.
Here is how to change the background color of nautilus in general (for GTK-3.0):
/usr/share/themes/Ambiance
~/.themes
and then make changes to it, rather than making changes in the original location.gtk-3.0/apps/nautilus.css
in theAmbiance
folder.Add these lines at the top of the file:
NautilusWindow * {background-color: gray;}
Restart nautilus, using
nautilus -q
command to quit nautilus.Coming back to your original question, I don't think it's possible to theme nautilus based on location because, changing theme requires nautilus to be restarted. (If you are OK with restarting of nautilus, I guess then someone can write a script which can play with css, based on current browser location. But again, I'm not too sure of that.)