Eclipse: Change background image

1. Find the path

First of all, we need to find the installation path of our eclipse. This is very simple. Don’t be afraid to forget where the fashion is. Let’s solve it in one step: right-click the eclipse shortcut, open the file location, and get it done.
Insert picture description here
Insert picture description here
Then enter the eclipse\ plugins \ org.eclipse.ui.themes folder in turn, because the version is different, the version number behind org.eclipse.ui.themes is also different, but in fact they are all the same. Then we can find the two folders css and images . Here, the path we want to modify is found successfully.
Insert picture description here

2. Modify the background CSS

First, go to the css folder you just found and find the theme that your eclipse is using. My own is dark. This step must be correct, otherwise the modified theme is not what you are using, and of course it will fail.
Insert picture description here
Then, add this piece of code to the css file of your corresponding theme, and save it with Ctrl+s.

.MPart StyledText {
    
    
  background-image: url(./1.jpg);
  background-color: white;
  background-position: no-repeat;
  color: black;
}

Just like this, besides the red arrow./ is the file name of your picture. As for where the picture is placed, please look down.
Insert picture description here

3. Place your background image

When it’s the most comfortable time, first open the images folder you just found , and then I don’t need to say anything.
Insert picture description here
Look at the picture below: This is where you store your background pictures. Copy the background pictures you like, but pay attention to a few Points:
1) The file name of the picture should be the same as the one in the css code snippet you just now;
2) The picture is best about 1500*1000, but it is only for reference;
3) Pay attention to the color matching, such as dark theme, it is best to apply dark Color theme pictures.
4) Pay attention to the picture matching. It is best to choose the picture on the left that is more concise and put the main element on the right, otherwise it will file into your code, which is not good.
Insert picture description here
The above is my eclipse interface, friends can also prepare a few more pictures like me, change the file name when you want to change, hehe, I hope this blog post can help you be happy when writing code.

Guess you like

Origin blog.csdn.net/qq_19265749/article/details/103000796