Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 110035

Summary: [Graphics] icons should scale with dpi and resolution
Product: [Eclipse Project] Platform Reporter: Noel Grandin <noelgrandin>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: bnikolaev87, bugmail, clint.eastwool, david_williams, gautier.desaintmartinlacaze, hfink, lorenzo.bettini, lshanmug, markus.kell.r, peter, sravankumarl, stanio, varosi
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 433098    
Bug Blocks: 424604, 479614    

Description Noel Grandin CLA 2005-09-20 11:20:50 EDT
I am running my desktop at 1280x1024 on a 17" monitor - the toolbar icons end up
very small - actually, pretty much all of the icons end up too small.

Ideally, the icons be scaled to maintain a constant physical size, which would
require calculating the real DPI.

Or perhaps scaled by the height of the current default system font, which would
also be a good indicator of the users "desired physical size", and perhaps
easier to achieve than digging in the OS internals for monitor physical size.
Comment 1 Steve Northover CLA 2005-10-04 19:46:30 EDT
This is a UI problem, not SWT.  We will display the icons we are given.
Comment 2 Michael Van Meekeren CLA 2005-10-14 14:27:07 EDT
Could you point us at some examples (snap shots) of other applications that do
this well?
Comment 3 Noel Grandin CLA 2005-10-15 12:34:13 EDT
To be honest, the only ones I know off are Linux/KDE based, and that is because
they make extensive use of SVG for their icons. I seem to remember they render
the icon to the right size and cache the rendered bitmap. And they use a
specialised rendering library (ksvg) that only does renderering, none of the
other SVG stuff.

Go here
http://www.everaldo.com/crystal.html 
for screenshots of KDE Crystal, an SVG-based icon theme.

I think Windows and Mac let you define icon sets, where you can have a set of
different size icons with the same name e.g. a 16x16, a 32x32 and a 48x48 icon.

I would think that an icon set approach would be the best for now.
Have a 32x32 icon, and 256x256 icon. If the needed size is small enough, use the
32x32 icon, otherwise take the 256x256 icon and downsample/upsample to the
correct size.

There is a proposed java icon set file format (JIC/JIconFile) being discussed in
the SwingLabs/JDNC incubator project.
https://jdnc-incubator.dev.java.net/source/browse/jdnc-incubator/src/dleuck/java/org/jdesktop/jdnc/incubator/dleuck/icon/
This includes code for manipulating an icon "bundle" and scaling images.
Comment 4 Tod Creasey CLA 2006-04-12 20:41:24 EDT
There is currently no plan to work on this request
Comment 5 Denis Roy CLA 2009-08-30 02:07:26 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 6 Paul Webster CLA 2013-12-23 09:33:41 EST
We need some SWT support to make this happen.

PW
Comment 7 David Williams CLA 2014-04-19 04:26:47 EDT
Obviously a very old bug, that was "kicked back to UI" from SWT, but I agree with Paul, that some SWT support is needed ... and due to our quirky Luna icons, believe there is a scenario that makes it apparent the OS is doing more than SWT is doing to accommodate non-standard resolutions or DPIs, so opened bug 433098.
Comment 8 Markus Keller CLA 2014-04-19 17:33:55 EDT
See bug 382972 for discussions about Retina on Mac OS X.
Comment 9 Vassil Keremidchiev CLA 2015-01-07 17:09:10 EST
I have a lot of DPI problems with Eclipse on my laptop:
2880x1620 at 15.4" display. 
Recently there are more and more high-DPI displays on the market. And I give +1 for this to be resolved sooner.
Comment 10 Borislav CLA 2015-08-29 13:47:07 EDT
I am on 4k display on 15.6 display and scale of 250%. I cannot even recognize the icons, the underlining( warn ,error, etc..). On the other hand the file dialogs has an enormous font. +1 to fix it in neon at least
Comment 11 Sravan Kumar Lakkimsetti CLA 2016-03-18 16:37:56 EDT
This is fixed as a part of bug 462952