Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the old color theme in Eclipse Luna?

Tags:

java

eclipse

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

enter image description here

They've provided 4 theme options all of which are black:

enter image description here

I'm surprised that they dropped the old theme. Atleast it should have been kept as an option.

Questions:

  • How do I get the old theme back without relying on theme plug-ins?
  • If I have to resort to a plug-in like eclipsecolorthemes which theme corresponds most closely to the eclipse default?

I have Version: Luna RC1 Release (4.4.0RC1) Build id: 20140522-1310 for Linux

Edit:

I have tested and the same problem happens in:

  1. Luna RC2
  2. Luna RC3
  3. ggts-3.6.0.M1
like image 741
Kshitiz Sharma Avatar asked Jun 02 '14 11:06

Kshitiz Sharma


People also ask

How do I change my Eclipse theme color?

To change the color theme in your editor: Go to Window | Preferences | General | Appearance | Color Theme. The list of available Eclipse color themes is displayed.

How do I get the dark theme in Eclipse?

The latest versions of Eclipse now come with a dark theme. Just go to Window -> Preferences -> General -> Appearance -> Theme and select "Dark" or another appropriate version based on your operating system.

How do I import a theme into Eclipse?

In Eclipse, to open the desired theme selection window go to Window > Preferences > DevStyle > Color Theme . In Extras section, click import and select dracula-theme. xml from the downloaded repository.


1 Answers

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.

like image 180
guari Avatar answered Sep 18 '22 01:09

guari