Ubuntu – Change background color of selected text

configurationgtkthemesunity

I use Ubuntu 12.04 with Unity and when I select a text (for example to copy something from browser), it has ugly orange background. I want to make it something normal like blue. I tried gnome-color-chooser but it doesn't have that option.

Do you know some way to change it? Maybe there is some gtk conf file where I can just change the color code.

Best Answer

You can edit

/usr/share/themes/Ambiance/gtk-2.0/gtkrc
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-3.0/settings.ini

and wherever you see selected_bg_color change #f07746 (orange) to #0000ff (bright blue, or whatever color you prefer)

These are system files, so to edit them you'll need to be root like so:

 gksudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-3.0/settings.ini