How to get the old color theme in Eclipse Luna?

后端 未结 2 1461
渐次进展
渐次进展 2021-02-09 02:49

I have installed Eclipse Luna and for some reason they have removed the default light colored theme that I\'m familiar with.

相关标签:
2条回答
  • 2021-02-09 03:41

    You could possibly set the color scheme yourself, I haven't looked very closely into the new eclipse (still use an older version myself), but I found this which might be of help:

    http://eclipsecolorthemes.org/?view=theme&id=790

    http://eclipsecolorthemes.org/

    Otherwise, maybe this answer can be of help:

    You can reset to default color scheme in the Window>Preferences options page. This expample will be for resetting a theme usd for Java.

    Navagate to Windows>Preferences>Java>Editor. Click on Syntax Coloring. Click "Restore Defaults" and "Apply". Then, navagate to General>Editors. Click on Text Editors. Click on "Restore Defaults" and "Apply".

    I had the same issue and the above steps cleared up my problem. Also, the Show line numbers check box is on the last page from above.

    0 讨论(0)
  • 2021-02-09 03:48

    You have to distinguish a syntax colors issue (Eclipse preferences) from a widget colors issue (Eclipse theme). I think you're dealing with the second one.

    You are using a dark OS theme, Eclipse is build on SWT that uses system widget. If an Eclipse (CSS) theme does not init a bright color for each widget then for it is used the color defined by your OS theme. Only the Dark theme tries to set a dark color scheme for each widget; the Classic, Default, GTK etc. themes have always supposed that the user is using a bright OS theme so they don't define specific colors for each widget (and they never did it).

    Moreover Eclipse 4.4+ switched to GTK3 by default, the SWT porting on GTK3 has still some rendering issues and some more limitations compared to the previous Eclipse versions based on GTK2 (you can notice them especially when switching to the Eclipse Dark theme).


    Supposing that with your current configuration and Eclipse 4.3- you have the desired appearance, a workaround can be running Eclipse in GTK2-compatible mode by starting it with a script like this:

    #!/bin/bash
    export SWT_GTK3=0
    ./eclipse
    


    If this doesn't solve your issue, you have to edit the desired CSS theme in \eclipse\plugins\org.eclipse.ui.themes_*version*\css\ by adding a bunch of rules to init each relevant widget to a bright color scheme.

    0 讨论(0)
提交回复
热议问题