Reputation: 16027
Eclipse Luna offers a dark color theme.
It's supposed to look like this:
On my system, it comes out like this:
Here's what I did:
This is a pretty fresh Linux Mint 17 Cinnamon 64-bit install.
I don't want to have to install the Eclipse color theme plugin. This should work out of the box.
Unlike others, my text field is fine, but my chrome is off. How can I fix this?
Upvotes: 11
Views: 10557
Reputation: 900
I had this issue with Eclipse CDT Neon 4.6.2 on Ubuntu 14.04 and none of the answers worked for me.
The problem was I tried to tell Eclipse to not use Gtk3 (by passing SWT_GTK3=0
) while I did not have Gtk2 installed.
pkg-config --modversion gtk+-2.0
2.24.23
sudo apt-get install gtk2.0
SWT_GTK3=0 <eclipse_install_path>
in a terminal(Optional) Create a .desktop file:
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env SWT_GTK3=0 <eclipse_install_path>
Terminal=false
Icon=<path_to_icon>
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development
Unfortunately this will not work with the scrollbars.
So to at least have themed scrollbars in the editor add
-Dswt.enable.themedScrollBar=true
directly after -vmargs
in the eclipse.ini file located in your Eclipse package path.
Upvotes: 2
Reputation: 4217
I was trying to solve a different issue but I noticed you're on Linux Mint with Cinnamon, the same as me, and this answer went a long way to making Eclipse display properly: https://stackoverflow.com/a/14075592/1410035
Going to Window > Preferences > General > Appearance and changing the theme to Classic seems to solve the problem.
It's worth mentioning mine was pre-set to GTK.
Upvotes: -3
Reputation: 81
I'm using Mint 17 and I had to do four things after switching to Luna's dark theme do get it to look nice.
First I installed all gtk theme engines the repository got.
sudo apt-get install gtk2-engines-* gtk3-engines*
Second install a dark theme (Menu -> System Settings -> Themes), I choose 'Midnight'.
Third, I had to change some gtk settings under the 'Other settings' tab. For 'Controls' I choose 'Xfce-dusk' and 'Window borders' 'nightfall'. These settings might not be available if you don't install the gtk engines.
Fourth, in Eclipse I installed 'Eclipse Color Theme 0.14' from Eclipse Market place and choose 'Sublime Text 2'.
The result is rather striking, IMHO.
Upvotes: 8
Reputation: 3820
Try to set the gtk3 env variable to 0, to start Eclipse in gtk2 compatible mode:
#!/bin/bash
export SWT_GTK3=0
./eclipse
(anyway, currently scrollbars are not stylable by SWT/CSS in any OS, but buttons and toobars should look good, especially on linux)
Upvotes: 2
Reputation: 257
You may also have to change the desktop theme (some of the OS-level controls like scrollbars... are not CSS-able by us)...
Upvotes: 2