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.

This is related to the recurring "white on black tooltips" question. Until yesterday I was able to change tooltip colors (and fix UI element padding) using a specific gtkrc file for eclipse, as suggested by this blog post.

My gtkrc looks like (slightly reformatted)

gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\n
  tooltip_fg_color:#000000\nselected_bg_color:#f07746\n
  selected_fg_color:#FFFFFF\ntext_color:#3C3C3C\n
  bg_color:#F2F1F0\ntooltip_bg_color:#f5f5b5\nlink_color:#DD4814
...

and I run eclipse with the command

GTK2_RC_FILES=~/.themes/eclipse.gtkrc eclipse

This worked fine for 11.10 and still works on 12.04, with the exception of tooltip colors, i.e. eclipse starts with the tweaked UI elements but still uses the default white on black tooltips.

Editing the system-wide gtkrc file at

/usr/share/themes/Ambiance/gtk-2.0/gtkrc

as suggested by this answer works fine, but I'd rather not do it and besides I still have no clue as to why eclipse will pick up all my modifications to gtkrc except the gtk-color-scheme setting. Does anyone know what's wrong?

share|improve this question
    
i suspect this is related to a switch from gtk2 to gtk3, but i couldn't say for sure –  hbdgaf Apr 29 '12 at 23:45
add comment

2 Answers

Check content of gtk-3.0/gtk.css in selected theme directory. As aking1012 said already, GTK3 used instead of GTK2.

share|improve this answer
    
Could be, but then how would I go about using an application specific gtkrc? –  agnul May 2 '12 at 11:55
add comment

Add this to your gtkrc (either ~/.gtkrc-2.0 or your custom eclipse one):

style "gnome-color-chooser-tooltips"
{
  bg[NORMAL] = "#FFFFAF"
  fg[NORMAL] = "#000000"
}
widget "gtk-tooltip*" style "gnome-color-chooser-tooltips"

This is what gnome-color-chooser does, it works.

share|improve this answer
add comment

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.