Skip to content

Commit 44a380d

Browse files
Michael5601HeikoKlare
authored andcommitted
Add N&N for SVG support
This contributes an N&N informing about the support of SVGs for loading images in Eclipse. See eclipse-platform/eclipse.platform.swt#1638.
1 parent 62972df commit 44a380d

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed
9.76 KB
Loading
11.1 KB
Loading

news/4.36/platform.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,34 @@ On a 200% monitor with the feature being **disabled**:
8787

8888
On a 200% monitor with the feature being **enabled**:
8989

90-
![Monitor-Specific UI Rescaling Enabled](images/rescaling-enabled.png)
90+
![Monitor-Specific UI Rescaling Enabled](images/rescaling-enabled.png)
91+
92+
### Support for SVG Images <!-- https://github.com/eclipse-platform/eclipse.platform.swt/pull/1638 -->
93+
94+
Until now, Eclipse only supported loading of raster graphics. This limited the ability to scale icons without
95+
quality loss and required manual rasterization of SVG files outside to generate icons in different sizes that can
96+
be embedded in Eclipse products, leading to additional effort and many separate icon files.
97+
98+
Support for vector graphics (SVG) has now been added. Instead of providing multiple rasterized images for different
99+
sizes, a single SVG file can be referenced. The SVG is rasterized on-the-fly at the required size
100+
when the image is retrieved at runtime. This ensures optimal image quality for arbitrary scaling factors
101+
without manual preprocessing. Support for loading raster graphics remains available.
102+
Together with the [on-the-fly generation of disabled versions of icons](#improved-disabled-icons-generation-),
103+
only one source file per icon needs to be managed for all required zoom levels as well as their visualization in
104+
enabled and disabled state.
105+
106+
As part of this change, most icons across all Eclipse SDK bundles have been added as SVGs, and the corresponding paths
107+
(e.g., in `plugin.xml` files) have been updated accordingly.
108+
109+
This improvement is especially beneficial for High-DPI displays, where crisp, scalable icons enhance the
110+
visual appearance and usability of the user interface. It also ensures better adaptation to different display
111+
settings and dynamic scaling scenarios.
112+
113+
**DEPRECATION NOTE:** The obsolete PNG files are now considered deprecated. They may be *removed with Eclipse 2027-06*.
114+
115+
The following screenshots compare the use of raster graphics and vector graphics when loading icons with 125% monitor scaling.
116+
117+
| Image Source | Example at 125% |
118+
| --- | --- |
119+
| PNG with scaling mode `nearest` | ![Rendering with PNG icons](images/image_rendering_png.png) |
120+
| SVG | ![Rendering with SVG icons](images/image_rendering_svg.png) |

0 commit comments

Comments
 (0)