Eclipse modifies background picture (not modifying background color) _eclipse

Source: Internet
Author: User

(Modify Eclispe background for pictures, anyway I was not found, so I wrote a tutorial)

Because of the near-end time, the idea editor, in idea, is allowed to modify the background picture.

For example, you can change the background to this picture background.



In eclipse, there seems to be no such setting, or that plug-in can implement this functionality. However, we want to achieve this effect by manually modifying the settings in Eclipse.

When eclipse starts, some files are loaded, showing the effects of the editor's style, and so on. Then we can start in this direction.

The following steps are described below:

Step One: Open the location of the eclipse file on your computer: G:\win10\eclipse-jee-neon-3-win32-x86_64\eclipse\ (this is mine)

Open one of the folders plugins:


After entering this folder, look for this file: (org.eclipse.ui.themes_1.1.300.v20161107-1827)

Because eclipse is different, you just need to find the Org.eclipse.ui.themes file. If you have more than one such file, choose a new time (that is, a 20161107 selection is newer).


Among them, we focus on two files, one is CSS, one is images

This is the style of the Eclipse UI that is stored in the CSS folder.

Images stores this eclipse UI picture. (we can put the background picture in this folder, of course, can also be placed in other folders).



E4_BASESTYLE.CSS is the underlying style file for the Eclipse UI. We're going to modify this file.

In this file, append a paragraph style:

. Mpart Styledtext {
  background-image:url (./1.jpg);
  Background-color:white;
  Background-position:no-repeat;
  Color:black;
}

Where: The URL can be a network picture, can also be a local picture.

and./directory can read the picture of the images folder just now. (It's best to choose a more appropriate picture.) You can put it in the right place.



Save this file and we'll open eclipse to see the effect.




Of course you can choose your favorite pictures, but note that you need to change the transparency of the picture, so that the code to see a little clearer.

If you can use CSS control, the background image transparency is the best, but I tried to try as if not ...

When you choose a picture, try to be a little bigger. 1920*1024 effect is not bad.

(The eclipse I used is newer, the none version, and a mars.2 is OK, so you should be able to use this method for different versions)



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.