Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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
share|improve this answer
    
It's great that you included the orange color! I was looking for that color to set it to my windows too (Unfortunately, I am stuck with it sometimes at work) –  Shahbaz Nov 19 at 16:45

Just to keep this up-to-date and complete: in 13.10, gtk.css imports gtk-main.css, so you will actually need to edit:

/usr/share/themes/Ambiance/gtk-2.0/gtkrc
/usr/share/themes/Ambiance/gtk-3.0/gtk-main.css
/usr/share/themes/Ambiance/gtk-3.0/settings.ini
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.