<div dir="ltr"><div><div><div>SVN is not ideal for icon formats. Beyond being too big (it is a verbose XML file after all), vector icons do not good at arbitrary sizes. IMO the best approach for vector icons is what Haiku OS is doing by using a custom icon format that is designed for small sizes and -more importantly- different elements in an icon can have a LOD range so that some elements will be hidden in small sizes and others hidden in large sizes.<br><br></div>Details and an example for LOD is here:<br><br><a href="https://www.haiku-os.org/docs/userguide/en/applications/icon-o-matic.html">https://www.haiku-os.org/docs/userguide/en/applications/icon-o-matic.html</a><br><br></div>The icon with the four colored triangles only show numbers in large sizes and in small sizes the outline is replaced with a thicker one that is still visible despite the small size (the original outline would be a smudge at the smallest size).<br><br></div><div>More technical details for Haiku's format can be found here:<br><br><a href="http://blog.leahhanson.us/post/recursecenter2016/haiku_icons.html">http://blog.leahhanson.us/post/recursecenter2016/haiku_icons.html</a><br><br></div><div>Of course this is probably the hardest approach to take (at minimum one would need to make an editor for such icons), but IMO if a DPI-agnostic is to be made, it is better to go with the technically superior approach if such a solution is to remain around for years.<br><br></div><div>(note that i do not think that using the haiku format directly is a good idea by itself, i'm just giving it as an example)<br><br></div><div>AFAIK SVG itself does not support LODs, although it is possible to emulate it if the SVG loader supports CSS and media queries so one could use something like @media screen and (max-width: 32px) for selecting 32px and below sizes. With multiple of these one can adjust properties like stroke widths and hide elements. But i'm not sure if any non-browser SVG loader even support CSS, let alone CSS with media queries.<br><br></div><div>Regardless if there is support for that, information can be found here for LOD:<br><br><a href="http://w3c.github.io/svgwg/specs/svg-authoring/">http://w3c.github.io/svgwg/specs/svg-authoring/</a><br><br></div><div>(search for 2.6. Responsive Images)<br></div><div><br></div><div>FWIW personally i think a dedicated format for vector icons (like what Haiku uses) would be a better idea in the long term.<br></div><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 26, 2017 at 11:13 PM, Ondrej Pokorny via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On <a href="tel:26.02.2017%2017" value="+12602201717" target="_blank">26.02.2017 17</a>:01, Donald Ziesig via Lazarus wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I agree. I just spent most of two days rescaling the icons with gimp, then registering them. It looks good, but I sure would not want to have to repeat for 200%, etc.<br>
</blockquote>
<br></span>
Do you mean that you took Lazarus original 16px icons, scaled them up to 24px one by one and registered them for Lazarus?<div class="HOEnZb"><div class="h5"><br>
<br>
Ondrej<br>
-- <br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br>
<a href="http://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus-ide.org/l<wbr>istinfo/lazarus</a><br>
</div></div></blockquote></div><br></div>