Hi Enrico,
On 16/02/2015 15:21, Enrico Forestieri wrote:
The attached patch let LyX use svg icons (if they exist) in preference
to png ones. The svg icons automatically scale to the wanted dimension
and the patch introduces 2 more resolutions (huge and giant icons) that
should be useful to people with hires displays.
Some svg icons were already added by Jürgen to the lib/images/svg subdir.
However, they are not seen there and should be copied in the normal places.
To this end, I also attach a shell script that symlinks them properly.
The script works like a toggle, i.e., the first time it is launched
the symlinks are created. When it launched a second time, the symlinks
are removed.
If no svg icons exist, LyX will use pngs, as usual. In my testing,
it turns out that some svgs are problematic and give warnings on
the console while they are loaded. Apart from that, everything seems
to work for me, but you never know, so I am asking for comments before
committing.
One general comment from my old souvenirs:
Qt supports SVG tiny standard and, IIRC, there were talk to deprecate
that support in some 5.X version.
At some point in the past, we did mostly the same thing as your patch
(not sure if this was André, Peter or me); we also had all icons
embedded in resource for faster loading and easier distribution. IIRC
there were some valid arguments that got this patch rejected at the end
so you might want to look at the archives.
But I like your patch ;-)
Cheers,
Abdel