Eclipse 4.x tab font sizes in GTK

The Eclipse 4 branch introduced some notable visual changes compared to the previous 3.x releases, like a reliance on more whites than greys. While unexpected at first, most of these changes just take some getting used to. With the exception of the size of the tab title font, that is – on GTK in Linux, tabs are just huge:

Bad tabs (huge).Fortunately, there’s an easy remedy to be found on Stack Overflow. Eclipse’s design is now based on CSS files. For the GTK main layout, the file is $eclipse/plugins/org.eclipse.platform_4.*/css/e4_default_gtk.css, and the CSS responsible for the tab headers is .MPartStack.

A simple change to this class is sufficient to set the tab font size back to normal:

.MPartStack {
/*      font-size: 11;*/
        swt-simple: false;
        swt-mru-visible: false;
}

As you can see, it’s enough to simply comment out the font-size style to set the size back to normal:

Good tabs (normal).

This entry was posted in Eclipse, Linux and tagged , , . Bookmark the permalink.

2 Responses to Eclipse 4.x tab font sizes in GTK

  1. DuckDuckGo says:

    You just improved the quality of my life, thank you!

  2. Pingback: Cambiar el tamaño de la fuente en las pestañas de Eclipse 4x | rubenlacasa.es

Leave a Reply

Your email address will not be published. Required fields are marked *