ecbrodie
ecbrodie

Reputation: 11946

Eclipse EGit with dark background, still has black text

My apologies if Stackoverflow was the incorrect Stackexchange site for this IDE-related question.

I am working on a project, which is shared with Git, on Eclipse Luna. As such, I rely on the EGit plugin for Git integration in the IDE (note that I have installed the latest version of EGit, 3.5). I prefer using dark colour themes in my IDEs, so I am using Moonrise UI and Eclipse Color Themes plugins to enable this behaviour.

It all works fine, my IDE is dark and colours within the toolbars and menu are not abnormal. However, there are still problems with the EGit colouring in my Package Explorer. The main issue is that certain text in the Package Explorer is now coloured black (this is being done on directories and files that have been edited). And this is against a black background. This makes it near impossible to see the text that is being coloured.

I know that I can change this colouring manually by going into Preferences --> General --> Appearance --> Colors And Fonts, select Git, and change all actions resulting in the colour black to be a different colour instead. However, I find this to be a little tedious and I thought that perhaps there is a more intuitive way to have these colours changed dynamically to make more sense against a dark background. I am also having these thoughts because this issue has already been reported as a bug in EGit that should have been fixed by version 3.5.

Any insight into this issue I'm facing is much appreciated.

Upvotes: 33

Views: 15183

Answers (5)

Chad Van De Hey
Chad Van De Hey

Reputation: 2911

Instead of disabling the feature all-together you can keep Git decorators enabled and modify a few settings. You will still be able to see the theme's correct colors and there are only 2 things you must change:

  1. Go to Preferences -> General -> Appearance -> Colors and Fonts -> Git.
  2. Select "Uncommitted Change (Foreground)".
  3. Set to about 72% white on a black vs white slide bar.
  4. Select "Ignored Resource (Foreground)".
  5. Set to about 72% white on a black vs white slide bar.
  6. Click Apply and Okay.

You should be good to go and will have the freedom to configure whatever colors you wish to show the "Ignored" fields and the "Uncommitted Change" fields.

We are developers here... Not feature killers...

Upvotes: 10

Rudge
Rudge

Reputation: 640

You need to edit the Eclipse Theme. Go to Window -> Preferences -> Appearance > Colors and Fonts. Search by Uncommitted Change (Foreground), edit and choose your preferred color.

Upvotes: 44

JxAxMxIxN
JxAxMxIxN

Reputation: 1731

As long as all the other fonts and colors are to your liking in in Eclipse - go to...

Window -> Preferences -> General -> Appearance -> Label Decorations

Uncheck Git and why not SVN while you're at it.

This should clear everything up for EGit.

You may also find that unchecking other items in this section will clear up other font/color issues you might have.

Upvotes: 3

DenBrahe
DenBrahe

Reputation: 151

I use regular Git which also gave black text. You can completely disable it in Preferences > Appearance > Label Decorations where you uncheck Git.

I don't think it is possible to disable Git text change but keep the '>' changes.

Upvotes: 11

Use another tool for git management (like Sourcetree or even the cli git) and disconnect your project by right clicking on it, going to the Team menu and selecting "disconnect" from it. Works fine for me that way, since I'm used to use the cli git.

Upvotes: -2

Related Questions