Search code examples
eclipsecolorsegitcolor-scheme

How to change the background color for changed files in eclipse project explorer?


Changed files under version control are displayed with a dark brown background in the project explorer, making the file names unreadable. I would like to change it.

the brown

I have switched between several color themes, but they don't affect the colors in the project explorer. I have not found any useful options neither in the General->Appearance->Colors&Fonts menu nor in the Team->Git menu.

The right-click on the colored filename does not offer an option to change color, as it does when used inside the editor.

I am using eclipse 3.7 SR2 with EGit.

EDIT: I can confirm that it is the git decorator providing the colors - once I switch it off (General->Appearance->Label decorators), the brown color is gone.


Solution

  • The settings you want are under Preferences > General > Appearance > Colors and Fonts, look for the section "Git" in the list and under there, "Uncommitted Change (Background)" and "Uncommitted Change (Foreground)." enter image description here

    I edited those settings to be a light blue background with white foreground and this is what a changed file looks like in my Project/Package Explorers:

    enter image description here