Eclipse 4 L&F on Linux

I’ve read some reports from people who don’t like the new L&F. I don’t want to discuss this what I’d like to present you is how you can get the old L&F almost back.

The default answer you’ll get is that you should switch to the Classic-Theme in Preferences > General > Appearance – don’t forget to restart because not all css-values are applied correct on the fly. Unfortunately this doesn’t fully fix it because tabs will now be rendered in blue which looks strange on e.g. Ubuntu.



The problem is that our CSS-Engine currently can’t access system colors nor derive colors from them (something we’ll address in 4.3). Now to give a solution until then I’ve hacked today a theme which is able to access those native colors in the same way 3.x derived them.

Version 0.1.0 of e(fx)clipse which is going to be released tomorrow is going to have this theme packaged with it! All others can fetch it from my github-repo.

Note for all other theme creators: The e4-e3 theme comes with possibility to register named colors through a DS-Service, so if you want to do complex color calculations based on e.g. some system colors you can contribute named colors.

Here’s how eclipse 4 on ubuntu looks now with a theme who honors the system color settings:

This entry was posted in e4. Bookmark the permalink.

17 Responses to Eclipse 4 L&F on Linux

  1. Lars Vogel says:

    Nice one, thank you. I didn’t know you where using Unity.

  2. In KDE the new theme looks even worse 😉 Mainly for the tabs which have a too big font.
    however, reverting to the classic theme works fine.

    • Tom Schindl says:

      are you talking about mine or the e4 default one? Mine currently use the classic theme but replaces only the color of the tabs to be derived from the system settings

      • He talks about this:
        Gentoo, KDE-4.9.00, Eclipse Juno Release Build id: 20120614-1722.
        Classic, Default, Gtk themes have big fonts and no way to change it.

      • Tom Schindl says:

        Ok so the default font selected is very big, no idea yet what can be done beside modifying the CSS by e.g. installing the CSS-Editor Addon

      • All other fonts: window title, editor is ok, as you can see. I can change them via system settings or eclipse settings. Such thing only with main tabs.

      • Tom Schindl says:

        The Tab-Fonts are defined in the CSS used so changing the system fonts does not help you for them. Can you try installing This one does not set a font via CSS so you should get the system default. Restart your eclipse after having switched the theme. Can also please file a bugzilla with a screenshot to show how bad the default theme looks.

      • Tom Schindl says:

        Have to correct myself. There is not font set at all in the CSS so this is very strange.

      • Yes, I was talking about the default one, which, in KDE, looks ugly, as reported by Maksym…

        sorry for the delay of my answer, but after I subscribed to your blog (after putting my original comment), your blog does not let me add any additional comment (it always asks for an account at your site, and the wordpress one does not suffice… that’s why I had to log with facebook)

  3. David Wegener says:

    Could you give some instructions on how to use this theme. I have no idea what I’m supposed to retrieve from the git repo, where to put it, or how to tell Eclipse to use it.

  4. I used ‘kcmshell4 kde-gtk-config’ command, downloaded new popular GTK theme and applied it. After that fonts was changed to small size. I’ll try to do some experiments with other themes. Thanks for your help and sorry for my english. 🙂

    • in particular, which theme have you downloaded?

      • Gtk theme was ‘Zukitwo’, but… 🙂
        After that i’ve tried to change Eclipse theme in General – Apperance and got the same result – TITLE BIG FONTS.
        I’ve tried another Gtk themes but with no luck. So, I installed gnome and cinnamon and tried there. While eclipse starts in terminal I noticed Gtk warning about murrine theme, so I installed gtk-engines-murrine
        and warning dissapeared. Then I relogin into KDE and eclipse title fonts became normal. I’ve tried again change theme into Eclipse settings and got BIG FONTS again. So I relogin into gnome,
        start/stop Eclipse, relogin into KDE and not touch any Eclipse Apperance settngs anymore. 🙂 And now it looks like:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.