I have a confession to make: I really like Ubuntu’s design, its look and feel, and its colour scheme.Â And it seems to get better with each release.Â The new Natty theme is really beautiful, and the dark window decorations of the Ambiance theme are great (especially now that they’ve chased down the odd dark text on dark background problems).
Having said that, there’s one thing that I really don’t like: the way that it’s virtually impossible to tell what you have selected in windows other than the one that happens to be focused.Â This is because the focused elements get completely desaturated, like this:
For comparison, here’s the same window when it has focus:
This is a particular problem when you have two windows containing elements that you’d like to compare.Â If you select these elements, and try to compare them by eye, you’ll often not be able to tell which one you selected in the unfocused window. 🙁
So I set out to change this by fiddling with the arcane theme files.Â The one you need to change is:
So, the way I did it was to add a new colour for my elements.Â Line 1:
gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#F2F1F0\ntooltip_bg_color:#000000\nlink_color:#DD4814"
gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#F2F1F0\ntooltip_bg_color:#000000\nlink_color:#DD4814\ntest-color:#f5d8b1"
Note the addition of the “\ntest-color:#f5d8b1” at the end of the line. Next, we change the elements we want to that colour.Â A bit of trial and error here and I found which one.Â Line 93 was:
base[ACTIVE]Â Â Â Â Â = shade (0.94, @bg_color)
base[ACTIVE]Â Â Â Â Â = @test-color
Voila!Â Our unfocused window now looks much better:
Now just open up the Appearance application, switch to a different theme, then back to Ambiance to load the changes, and enjoy!
Even easier, change
base[ACTIVE] = shade (0.94, @bg_color)
base[ACTIVE] = shade (1.4, @selected_bg_color)
Thanks, klkop, that is simpler. I personally prefer shade (1.5, @selected_bg_color) or even still using my solution as it gives a slightly different shade of orange (with less red in it). But each to their own! 😉
Note also that I had to reapply this change after the upgrade to 11.10 Oneiric Ocelot. It now applies only to GTK2 applications (like Thunderbird), but GTK3 apps don’t seem to exhibit this problem anyway.
This still applies to Ubuntu 12.04 Precise Pangolin. The main GTK2 app that I still use every day and exhibits this problem is Thunderbird.
Thanks for this, the non-selected highlighting in geany was driving me bonkers.