Community
Participate
Working Groups
Currently jface support a suffix @2 and @1.5 for Url/File. This works as long as there is only one resolution, but if there are more than one (e.g. 16x16 and 32x32) this produces a lot of duplicate files (as @2x of 16x16 is the same as 32x32. As it is common to organize icons in folders that has the resolution in the name the following scheme should be supported: - The path is taken and scanned for the pattern "/(\d+)x(\d+)/" - If the pattern is found it is replaced with the parsed integer value multiplied with the zoom level --- Example path is platform:/plugin/org.eclipse.icons/icons/16x16/icon.png, pattern matches and return 16 in this case, a zoom level of 200 is requested we calculate: replacement = 16 * 2 = 32 and get the new path platform:/plugin/org.eclipse.icons/icons/32x32/icon.png for a zoom level of 150 we get 16 * 1.5 = 24 and a new path platform:/plugin/org.eclipse.icons/icons/24x24/icon.png --- This has also the advantage that we are not bound to fixed zoom levels.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/170856
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/170856 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=ca8ef3b9978346fbfb31c0dea5ed4d9479832c3d
Please add to N&N
(In reply to Lars Vogel from comment #3) > Please add to N&N Is there a Wiki-Page for this?
(In reply to Christoph Laeubrich from comment #4) > (In reply to Lars Vogel from comment #3) > > Please add to N&N > > Is there a Wiki-Page for this? Instructions are in the repo, see https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/170903 for an example and the repo URL
Image related question, can be also use unicode symbols these days for Images? Works fine for Label AFAICS and I think it would be really nice if we could use them in toolbars. Label label = new Label.... label.setText("❌" + "⛲");
If you don't set an image the text will be used but I think there will be no hover possible or something. What would be possible is to create a "SymbolsImageDescriptor", given a symbol, a font and an initial size (e.g. 16x16) that renders the symbol as an image on request taking zooming into account this will be also seamless with HighDPI. I just don't know if SWT/JFace ships with a suitable default or we can identify one across operation systems.
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/171188
Thanks!
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/171188 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=4251f5e7b9d5ff28f5be1ef5edd8028486602b13
Does anyone know if this broke icons on Linux? See Bug 568407