gtk - eclipse-mars on linux: black background color in Tooltip's -


i know there several tips changing background color of tooltip windows in eclipse under linux (these windows have on linux distribution per default black background ...). of things have tried are:

https://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity https://askubuntu.com/questions/1620/how-to-fix-unreadable-tooltips-in-eclipse-helios https://askubuntu.com/questions/35491/how-to-change-tooltips-background-color-in-xfce

i have tried eclipse luna. seems nothing of work eclipse mars.

anybody knows how can change background color of tooltips in eclipse mars under linux?

edit (2016-apr-06)

ok. found out several things in last months. in eclipse mars developer switches on linux gtk2 gtk3 . there several things changed in mars. had written question above had work on xfce. have switched kde. on kde can change tooltip background color described in comment of "omid" below. kde has several problems eclipse mars. solve see other question/answer her:

https://stackoverflow.com/a/35897315/1465758

but have found no way change tooltip background color on xfce. may same on gnome (not tested me)...


other answers appear disable gtk3.

i able fix issue in eclipse neon + linux mint 18 (sarah) without falling gtk2

the gtk3 theme files in /usr/share/themes/mint-x-teal/gtk-3.0 define color use tooltips so:

@define-color theme_tooltip_bg_color #fbeaa0; @define-color theme_tooltip_fg_color #212121; 

eclipse looking similar settings, without "theme_" in name.

in linux mint 18 (sarah) or other distro uses gtk 3, you'll want first make copy of file safekeeping

sudo cp /usr/share/themes/mint-x-teal/gtk-3.0/gtk-main.css{,.bak} 

then open file editing

sudo vim /usr/share/themes/mint-x-teal/gtk-3.0/gtk-main.css 

or if you're not comfortable vim

gksu gedit /usr/share/themes/mint-x-teal/gtk-3.0/gtk-main.css 

and add following lines

@define-color tooltip_bg_color #ffffff; @define-color tooltip_fg_color #212121; 

but find html color picker online , select colors you're comfortable with.

note may have edit files in different directory based on theme you're using. on linux mint 18 (sarah), can determined opening "themes" setting dialog , checking 1 used "controls"

i use "mint-x-teal" theme, mint-x theme here

/usr/share/themes/mint-x/gtk-3.0/gtk-main.css 

Comments