Skip to content

kiconloader: use librsvg instead of qtsvg for icon rendering

Jan Blackquill requested to merge work/cblack/rsvg into master

This has a few effects:

  • This substantially improves the rendering of various widespread icon themes, e.g. Adwaita icons and application icons for GNOME apps.

This is closer to average than to worst case on Adwaita symbolic icons with Qt SVG: ksnip_20200617-125339 The same icons being rendered with librsvg: ksnip_20200617-144647

Colourful icons are also prone to SVG rendering errors due to Qt SVG's intentionally limited subset of SVG.

Before (Qt SVG):

ksnip_20200617-144304

After (librsvg):

ksnip_20200617-144439

  • This reduces the barrier to entry to contributing to Breeze icons substantially. New contributors to the Breeze icon style have to avoid a lot of basic SVG elements that programs like Inkscape use as part of their default workflow and instead have to learn how to circumvent the shortcomings of the Qt SVG renderer.
Edited by Jan Blackquill

Merge request reports

Loading