Ubuntu eclipse changes the background and font color of the prompt box

Source: Internet
Author: User

The background color of the eclipse prompt box is the color configuration of the system prompt box, which is yellow in windows, but black in Ubuntu, which makes the prompt content hard to see.

In eclipse, we cannot modify the color configuration. We can only modify the color configuration of the system.

Before ubuntu11.10, We can customize the system appearance to modify the color configuration. However, after ubuntu11.10, there is no relevant operation interface, you can only modify the configuration file. This file is located in the corresponding topic folder under/usr/share/themes/. If you use the radiance topic, go to the/usr/share/themes/radiance/directory,

CD/usr/share/themes/radiance

Open the gtk-2.0/gtkrc file,

Sudo Vim Co., gtk-2.0/gtkrc

Modify the values of the tooltip_fg_color and tooltip_bg_color attributes in the first line. If the attributes are not modified, you can add them by yourself. The values are set based on the default values of windows:
Tooltip_fg_color: #000000
Tooltip_bg_color: # f2edbc
Save and exit, enable the system appearance configuration, and switch the topic. When the topic is switched back, the modification takes effect.

The background color of the eclipse prompt box is the color configuration of the system prompt box, which is yellow in windows, but black in Ubuntu, which makes the prompt content hard to see.

In eclipse, we cannot modify the color configuration. We can only modify the color configuration of the system.

Before ubuntu11.10, We can customize the system appearance to modify the color configuration. However, after ubuntu11.10, there is no relevant operation interface, you can only modify the configuration file. This file is located in the corresponding topic folder under/usr/share/themes/. If you use the radiance topic, go to the/usr/share/themes/radiance/directory,

CD/usr/share/themes/radiance

Open the gtk-2.0/gtkrc file,

Sudo Vim Co., gtk-2.0/gtkrc

Modify the values of the tooltip_fg_color and tooltip_bg_color attributes in the first line. If the attributes are not modified, you can add them by yourself. The values are set based on the default values of windows:
Tooltip_fg_color: #000000
Tooltip_bg_color: # f2edbc
Save and exit, enable the system appearance configuration, and switch the topic. When the topic is switched back, the modification takes effect.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.