'Eclipse: large toolbar icons
Does anybody know how to use large toolbar icons? Edit: How do I do it?
Solution 1:[1]
Here is what to do for an easy solution:
- Go to the start icon of your eclipse or PLCXpressoand
- Click your right mouse bottom
- Go to down and click properties
- Click compartibility
- Check overwrite high DPI scaling
- Select system (enhanced)
- Click OK at the bottom
Start Eclipse and enjoy
Solution 2:[2]
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.
Solution 3:[3]
I have searched and searched for weeks for a solution to this problem If you want to solve it go to your eclipse folder and *.png search. Resize all the icons from 16x16 to 32x32 Then do the same for *.gif.
As you can see in the image I have not finished the task but it does work if you want to put in the time. I am sure there is an easier batch method of doing it I am sorry I have not found that yet. Just in case anyone is still using eclipse (which I prefer) and wanted larger toolbar icons there you go.
EDIT: I found an easy to use batch tool called Fotosizer. It remembers all the icons file locations when you drag and drop your *.png *.gif found files into the image selection area. Just set up the options for sizing and set the output like the image I just uploaded. If 32x32 is too big for you just make them a little smaller. Fotosizer Click Here I used the free version. Screenshot Click Here
Be sure when you do your search to right click and sort the images by dimensions to make it easy for you to find all the 16x16 files in a group. This is in windows 7 64 bit version and RapidClipse Version: 2.3.1.201607130701
Take care, Barry
Solution 4:[4]
I solved it on Linux by appending this line to eclipse.ini:
-Dswt.autoScale=200
See the original answer on reddit: https://www.reddit.com/r/archlinux/comments/61zsds/eclipse_neon_on_hidpi_screen_and_plasmaa_5/
Solution 5:[5]
add -Dswt.autoScale=150 in eclipse.ini, is working for my hybrid win10 12.3"
Thanks to Markus B
Solution 6:[6]
Running Eclipse 2020-09 R (i.e, v4.17) on Linux (openSUSE Tumbleweed with XFCE session) on an HP Spectre x360 with 283 dpi, I found that out of the box the fonts were fine but the icons were unreadably tiny. Also, setting -Dswt.autoscale=300 in the eclipse.ini made the icons look perfect but completely disrupted the layout and functionality of SWT (couldn't click on tabs, many texts were unreadably clipped). So I had to resort to the method of scaling all of the icon files. Here's one way to automate it.
After running eclipse for the first time (since that first run unpacks a lot of icons), go to the top-level eclipse directory (the one in which the eclipse executable resides), and enter xonsh (the python-based shell) in that directory. Then you can execute the following commands (at your own risk), for example by copy-pasting them at the prompt:
pngl = $(find . -name "*.png").strip().split("\n")
for png in pngl:
if not ('@2x' in png):
print(f"Found icon {png}, moving...")
pngo = png.replace('.png','-orig.png')
mv @(png) @(pngo)
pngbig = png.replace('.png','@2x.png')
if pngbig in pngl:
print(" ...has enlarged, scaling that by 150")
convert @(pngbig) -resize 150% @(png)
else:
print(" ...no enlargement, scaling orig by 300")
convert @(pngo) -resize 300% @(png)
Of course if you wanted a different basic scaling factor, say 250%, you would change the 150% scaling of the double size icon in the pngbig branch to 125% and the 300% scaling of the original-size icons in the other branch to 250%.
Solution 7:[7]
In 2022 on linux with an UltraHD display:
- set your system as zoom 100% (forget 200% or fractional hacks, it's slow and buggy)
- only use font scaling :
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
To launch Eclipse (with perfect text and icon size) from terminal, use :
GDK_SCALE=2 GDK_DPI_SCALE=0.5 ./eclipse
Solution 8:[8]
In case you use STS 4, edit SpringToolSuite4.ini instead with the properties suggested by @Frank
-Dswt.enable.autoScale=true
-Dswt.autoScale=150
-Dswt.autoScale.method=nearest
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Richard Jessop |
| Solution 2 | |
| Solution 3 | |
| Solution 4 | Markus Bauer |
| Solution 5 | Prof SII Suppléant |
| Solution 6 | Glen Whitney |
| Solution 7 | BluEOS |
| Solution 8 | ittradco |
