Ubuntu 12.04 Eclipse set Javadoc background color

 

http://blog.csdn.net/qxb1229/article/details/8265616

 

Under the Ambiance theme, the tip popped up by eclipse has a black background, which makes it impossible to see the java doc at all.

 

Of course, you can change the system theme to other themes in the appearance. The corresponding gtk-2.0/gtkrc needs to be reset. For example, the default theme of Ubuntu 12.04 is Ambiance, then we can change the following path to: /usr/share/themes/Ambiance/gtk -2.0

 

Solution:

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

sudo gedit gtkrc

 

The relevant code is as follows: (I modified it)

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"

 

in:

base_color is the base color, I adjusted it to bean paste green #C7EDCC, so that the main color of the entire eclipse is bean paste green, to protect the eyes.

tooltip_fg_color : It is the tip that pops up by pointing the mouse to a variable in eclipse, and there is a java doc in it. This is the foreground color, such as the font color.

tooltip_bg_color: The background color, which was originally black, caused the doc to be unclear, so it can be changed to a lighter color.

selected_bg_color: The selected background color, the original background is too dark, the selected words are not clear, it is recommended to modify.

selected_fg_color: The selected foreground color, such as the font color.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326896817&siteId=291194637