2015年8月2日 星期日

change the font size of package explorer eclipse 4.4 or 4.3

On Juno and up you can adjust that font by CSS.
Lookup the files in eclipse\plugins\org.eclipse.platform_4.2.x.y\css for your current style sheet (probably e4_default_win7.css), and then just add the following rule:
#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree {
  font-size: 10px; /* <-- Desired font size */
}
shareimprove this answer
   
See also Jeeeyul's Eclipse Themes - Chrome for an easier way to edit the CSS, and Themeable RWT Widgets for some elements to style. Could not find a reference for ids to specific parts though. – HrKristiansen Feb 13 '14 at 11:43

FYI:
From Eclipse Luna(4.4)
Looks like the css files are no longer in old folder:
`eclipse/plugins/org.eclipse.platform_4.x.x.vy/css`,
they are moved to the new folder:
eclipse/plugins/org.eclipse.ui.themes_x.x.x.vxxxxx/css
And you must select a theme to apply it, in the menu
[Windows]==>[Prefrence]==>[General]==>[Appearance]

沒有留言:

張貼留言