Eclipse Background Color will not change OSX, Pydev

怎甘沉沦 提交于 2019-12-08 17:09:41

问题


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.

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:

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?


回答1:


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.




回答2:


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)



来源:https://stackoverflow.com/questions/29605253/eclipse-background-color-will-not-change-osx-pydev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!