2

I am using Eclips on Ubuntu 20.04. I found that font and icons size are too small.

When I run

GDK_DPI_SCALE=1.1 ./eclipse

Font size are ok but toolbar icons are still retaining small size:

Small icons on toolbar

When I tries to edit e4_basestyle.css files under eclipse\plugins\org.eclipse.ui.themes_X.X.X.vXXXXXXXX-XXXX\css by adding

#org-eclipse-jdt-ui-PackageExplorer Tree,
#org-eclipse-ui-navigator-ProjectExplorer Tree {
    font-size: 16px;
    font: Nato Sans;
}

.MPart Tree {
    font-family: Nato Sans;
    font-size: 16px;
}

it only affect on font.

Any options?

howlger
  • 31,050
  • 11
  • 59
  • 99
j321123j
  • 21
  • 1
  • 4
  • Does the following has an effect in your case? https://stackoverflow.com/a/48474802/6505250 By the way the font can also be changed in the preferences, no need to edit CSS files for that. Which Eclipse version do you have? – howlger May 28 '21 at 06:58

1 Answers1

2

Following this guy's answer; https://stackoverflow.com/a/61405677/13800339

At first, close eclipse and be sure it is closed. Than edit eclipse.ini and add the following lines:

-Dswt.enable.autoScale=true

-Dswt.autoScale=150

-Dswt.autoScale.method=nearest

The -Dswt.autoScale=150 will increase your Icons, 150 will say 150%. If it is not enough, increase it or decrease it otherwise.

  • 3
    Doesn't work in Eclispe Version: 2021-12 (4.22.0). After adding this change, eclipse did not successfully launch (until I removed the change). – kurt krueckeberg Dec 24 '21 at 13:30