Qabel / qabel-desktop

(B2C) :computer: Desktop frontend of Qabel
Other
11 stars 12 forks source link

SVGs #515

Closed julianseeger closed 7 years ago

julianseeger commented 7 years ago

This PR adds a general SVG image interpreter that rasterizes SVGs if loaded as an image. Not perfect but much sharper than the previous images. By far easier than extracting paths and transforming them to real JavaFX SVGPath instances and is extendable to that.

As a proof of concept, I added some SVGs to different views like the navbar and the filebrowser. Now we can use SVGs everywhere and later extend this code to produce real vector elements instead of rasterizations.

julianseeger commented 7 years ago

image Side by side comparison of an icon from the navi. Left image was loaded as svg, the right one as png.

thechauffeur commented 7 years ago

Resolves #458