Address: http://www.linuxidc.com/Linux/2012-09/69494.htm
Under the radiance topic, the tip popped up By eclipse is a black background, so that you cannot see the Java Doc at all.
Of course, you can change the system theme as another theme in the appearance, the corresponding gtk-2.0/gtkrc to reset, such as ubuntu12.04 default theme is ambiance, then we can change the following path: /usr/share/themes/Ambi/gtk-2.0
Solution:
CD/usr/share/themes/radiance/gtk-2.0
Sudo gedit gtkrc
The related code is as follows: (my modified code)
GTK-color-scheme = "base_color: # c7edcc \ n
Fg_color: # 4c4c4c \ n
Tooltip_fg_color: #000000 \ n
Selected_bg_color: # fff0f5 \ n
Selected_fg_color: # ff6600 \ n
Text_color: # 3c3c3c \ n
Bg_color: # f6f4f2 \ n
Tooltip_bg_color: # f2edbc \ n
Link_color: # dd4814"
Where:
Base_color is the base color. I adjusted it to bean paste green # c7edcc. In this way, the main color of eclipse is bean paste green to protect the eyes.
Tooltip_fg_color: The tip popped up by a variable is pointed with the mouse in eclipse, which contains Java Doc, which is the foreground color, such as the font color.
Tooltip_bg_color: Specifies the background color. It turns out to be black, and the doc cannot be viewed clearly. You can adjust the color to a lighter color.
Selected_bg_color: The selected background color. The original background is too deep and the selected text cannot be viewed clearly. We recommend that you modify it.
Selected_fg_color: The selected foreground color, such as the font color.
Restart after modification.
Common color value reference: http://www.linuxidc.com/Linux/2012-01/52649.htm
Attached with my reference settings, the amount can be directly copied to the file header
Old_ambiance
GTK-color-scheme = "base_color: # ffffff \ nfg_color: # 4c4c4c \ fingerprint: # ffffff \ fingerprint: # f07746 \ fingerprint: # ffffff \ ntext_color: # 3c3c3c \ nbg_color: # f6f4f2 \ ntooltip_bg_color: #000000 \ nlink_color: # dd4814"
Change_ambiance
GTK-color-scheme = "base_color: # ffffff \ nfg_color: # 4c4c4c \ fingerprint: #000000 \ fingerprint: # f07746 \ nselected_fg_color: # ffffff \ ntext_color: # 3c3c3c \ nbg_color: # f6f4f2 \ ntooltip_bg_color: # f2edbc \ nlink_color: # dd4814"
Old_radiance
GTK-color-scheme = "base_color: # ffffff \ nfg_color: # 4c4c4c \ fingerprint: # ffffff \ fingerprint: # f07746 \ fingerprint: # ffffff \ ntext_color: # 3c3c3c \ nbg_color: # f6f4f2 \ ntooltip_bg_color: #000000 \ nlink_color: # dd4814"
Change_radiance
GTK-color-scheme = "base_color: # ffffff \ n
Fg_color: # 4c4c4c \ n
Tooltip_fg_color: # ffffff \ n
Selected_bg_color: # f07746 \ n
Selected_fg_color: # ffffff \ n
Text_color: # 3c3c3c \ n
Bg_color: # f6f4f2 \ n
Tooltip_bg_color: # f2edbc \ n
Link_color: # dd4814"