Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot set "Part title font" in Eclipse on Linux

Every font in Eclipse looks great, but the titles of tabs are bigger than I would prefer. I attempt to change it but Eclipse doesn't recognize the change. To make a change, I navigate to Preferences-> General-> Appearance-> Font and Colors. I edit "Part title font" but the change doesn't remain, even though the preview is OK.

like image 607
thebestneo Avatar asked Jun 30 '12 12:06

thebestneo


People also ask

Can we change font in Eclipse?

Go to Preferences > General > Appearance > Colors and Fonts, expand the "Basic" folder and select "Text Font" and change that to whatever size you like. Show activity on this post. Restart Eclipse to apply changes.

How do I import a font into Eclipse?

Select Window (in a PC) and Eclipse (in a Mac), followed by Preferences→General→Editors→Text Editors. Select 'Colors and Fonts' in "See 'Colors and Fonts' to configure the font. Expand the "Basic" option by clicking on >. Select the " Aa TextFont " option.


1 Answers

if you are on Linux which is using GTK for eclipse, you can change the file ${ECLIPSE_PATH}/plugin/org.eclipse.platform_${version}/css/e4_default_gtk.css. If you are on other OS you can also find corresponding css files.

find

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

change the font-size to 9 or other size you want. After restart eclipse, the view title bar font size will be changed.

like image 73
lephix Avatar answered Oct 22 '22 14:10

lephix