Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Background Color will not change OSX, Pydev

Please read before marking as duplicate, I have searched for an answer to my specific issue for a long time and have not found one.

My Eclipse (Luna 4.4.1) IDE refuses to change the background color for the text editor. Please see the screenshot. It seems to be black when the IDE starts, then after a few seconds it switches to white.

IDE screenshot showing broken background color

I have tried (with restarts of the program between changes):

  • Eclipse > Preferences > General > Appearance (Set to Dark or Moonrise)
  • Eclipse > Preferences > General > Appearance > Color Theme (Tried many dark themes)
  • Eclipse > Preferences > General > Editors > Text Editors > (Background Color => Black)

I'm using the PyDev Pluggin, but I've also tried switching to Java and other perspectives and have the same problem. I've tried installing the Moonrise theme, and uninstalling and reinstalling the same as well as the Eclipse Color Theme plugin as well.

Has anyone seen this before and figured out a solution?

Updated:

If I change the IDE to the Java perspective and open a Java file I still have the annoying white background, but in a slightly different way:

screen shot with broken background color in Java editor

I have uninstalled the moonrise theme and I am just using the Dark Theme here. I think this rules out Pydev influencing the colours and it must be something at the general editor level. Though again, I have set the background color to black for the general editor.

MAJOR UPDATE - The bug is somewhat reproducible

Ok, so I haven't solved the problem but I've figured out what's triggering it! When I open Window > Customize Perspective, the background switches to the correct black style and then stays that way until I restart the IDE. That's without me changing any settings, just the mere act of opening that dialog. But why?

like image 878
LaserJesus Avatar asked Apr 13 '15 12:04

LaserJesus


2 Answers

I guess my answer to the this post How to change color of Editor in Eclipse works for you.

I think its because of Editbox plugin. Make EditBox Off then check. If not working uninstall EditBox then check.

Its because of conflicts between Editbox colour settings and eclipse theme settings.

like image 156
Chandrayya G K Avatar answered Nov 12 '22 08:11

Chandrayya G K


From patchnotes, pydev seems to support the eclipse darktheme since 3.6.0 : http://pydev.org/history_pydev.html

The PyDev editor supports the new dark theme in Eclipse 4.4 (so, when it's chosen the editor colors are properly updated).

I believe the pydev editor has his preferences, so if you want to edit colors for the editor, it might be under :

Window > preferences > PyDev > Editor

You can find some resources to customize the pydev editor (if still not answerint to eclipse dark theme) here : http://pydev.blogspot.fr/2009/07/creating-dark-theme-and-exporting-and.html

You can try disabling pydev editor through file type extension but not sure it will be a nice syntax coloring (window>preferences>pydev>editor>code style>filetypes)

like image 35
flafoux Avatar answered Nov 12 '22 09:11

flafoux