erginduran
erginduran

Reputation: 1682

Eclipse Luna dark theme (not completely dark like pictures)

I downloaded Eclipse Luna 4.4 from eclipse.org. And I changed the theme on general > appearance > theme => dark. But it's not like I want.

Which is now enter image description here

Should be (appears in the pictures) enter image description here

Moonrise ui enter image description here

How can i do completely dark Eclipse?

Upvotes: 39

Views: 46886

Answers (6)

plain_text
plain_text

Reputation: 91

I tried many SO answers related to Dark Theme in Eclipse on my Debian Stable(Jessie)\Gnome shell box, but none worked well. The key thing that helped in my case was setting SWT3_GTK=1 and running eclipse executable from shell script. I.e. create a script like this in the same dir where eclipse executable resides:

#!/bin/sh
export SWT_GTK3=1
./eclipse

You should also install Eclipse color theme in order to choose Dark theme. "Dark" or "Moonrise" themes work well for me. In addition to that install gnome-tweak-tool and switch on Global dark theme. You may also want to install Adwaita theme.

Restart Gnome shell and Eclipse to make sure your settings are applied.

Upvotes: 1

Daniel Centore
Daniel Centore

Reputation: 3349

The correct thing to do in Ubuntu is to set LIBOVERLAY_SCROLLBAR=1 . My entire /usr/share/applications/eclipse.desktop file:

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env LIBOVERLAY_SCROLLBAR=1 /opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

The important part here is the env LIBOVERLAY_SCROLLBAR=1 which tells Ubuntu that it's alright to use the pretty orange bars. Also note that my eclipse install location is /opt/eclipse/eclipse; it may be different for you depending on how you installed. Use the path from your existing .desktop file.

Upvotes: 4

JohnFullard
JohnFullard

Reputation: 177

I tried several of the answers listed here and still had a white background in several views like package explorer, outline, and problems. The solution for me was to change to a dark theme on my OS (fedora 18) rather than changing my UI theme or editor preferences.

Upvotes: 0

vogella
vogella

Reputation: 26342

The editor should work out of the box, we (the Eclipse platform team) fixed that before the Luna release, at least for JDT and CDT. I think what you are seeing is the "Terminal" bug, i.g., if you include the new terminal (or download a version of Luna which includes that you get this white background). This is already fixed and should be contained in the 4.4.1 release.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=438175 for details on the bug.

Upvotes: 30

dan carter
dan carter

Reputation: 4341

Ok here's what worked for me, simpler than installing a whole new colour theme. (on java 8 JRE on WinXP)

Preferences -> General -> Editors -> Text Editors: Background colour

deselect 'system default' and choose pure black

Now go to 'current line highlight' and make it you favourite shade of grey. RGB 60/60/60 works for me.

Upvotes: 10

Ellery
Ellery

Reputation: 1426

You have changed the UI but the not the colors of your editor. Check out http://eclipsecolorthemes.org/ and install the color theme of your choice.

Upvotes: 7

Related Questions