How eclipse background document editor window filled with background images?

 

1. scenario demonstrates

  Background document editing window defaults to white.

  We know that the face of the computer all day for programmers, white likely to cause eye fatigue, but also for the eye injury is relatively large.

  So, eclipse add a black theme.

  Switch to black theme

  After changing into a black theme, all the windows are replaced with black.

  After using SonarLint analysis (which is sonarlint window)

  For specific descriptions (this is the interpretation of the rules window)

  Dark one, not see anything.

2. Analysis

  How to do, in fact, for our programmers, requirements are simple, you do not need all the windows are switched to black, we often stare window is a text editor window and console.

  Other windows change the background color but not white looked comfortable.

  You can only modify the background of the editor window it?

  If you change the background color of the editor of the words, without a doubt, you have to modify the background color syntax highlighting, or will conflict with the background color, the result is conflicting syntax keywords can not see.

  So, my solution is:

  The background of the editor window to add a background image can be friends.

3. Solution

  Corresponding to the theme by modifying the eclipse CSS styles to achieve.

  Step 1: Check eclipse theme currently in use; 

  Step two: find the file with ui.themes eclipse installation folder path

  The third step: to be treated like an image of the background, put into the images folder

  Step four: Open the CSS folder

  Step Five: Locate and open the theme of the corresponding CSS file;

  Add the following code at the end of the file 

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

  

  Step six: Restart eclipse, effect.

 

Written in the last

  Which big brother If it is found there is leakage of the carelessness of the article or need to add more content, welcome message! ! !

 related suggestion:

 

Guess you like

Origin www.cnblogs.com/Marydon20170307/p/10936443.html