Jump to content
Steven Kamradt

ANN: SVGIconViewer

Recommended Posts

Lately I have found myself spending way to much time locating and converting my various toolbars and buttons to use SVG images.  Part of that time was searching multiple archives only to find the same list of icons, however in different weights and sizes.  The Microsoft Fluent UI icon repository is difficult to easily navigate and requires multiple steps to grab an icon... there had to be an easier way.  So I wrote one that not only allows one to save SVG files, but also PNG files with an  included -x size added to make it super easy when adding to an existing image collection (if you, like me, have projects that are still not quite in the latest version of Delphi).  The project requires Delphi 12 (or minimally Delphi 10.4 with Skia4Delphi added) to recompile, I have included a compiled executable as a release asset if you do not have the required Delphi version.  There are currently 27,400 individual SVG icons, additionally those that have both a filled and outline version have the option to also generate a "TwoTone" icon. You have complete control over colors and export sizes.

 

https://github.com/skamradt/SVGIconViewer

 

Currently included Icon libraries:  Microsoft Fluent UI, Tablar-Icons 

 

If you find this project useful, I would appreciate a star.  If it saves you time and effort, feel free to buy me a coffee (or several, code signing is so expensive lately).  🙂

  • Like 6
  • Thanks 1

Share this post


Link to post

Good idea.

 

You can perhaps add a TImageCollection export with an icons selection list or the source code to use the SVG directly in a unit ? It could be a good alternative to use vector images in final projects.

Share this post


Link to post

When I try to run the pre-built executable linked from Github, on Windows 11, I get either a runtime error 217 or a crashdump, depending on the current directory of the exe.

Share this post


Link to post
4 hours ago, timfrost said:

When I try to run the pre-built executable linked from Github, on Windows 11, I get either a runtime error 217 or a crashdump, depending on the current directory of the exe.

Did you unzip the exe AND the dll into the same directory?  Which directory did you install it?

Edited by Steven Kamradt

Share this post


Link to post
6 hours ago, Patrick PREMARTIN said:

You can perhaps add a TImageCollection export with an icons selection list or the source code to use the SVG directly in a unit ? It could be a good alternative to use vector images in final projects.

Thank you for the suggestion.   I'll consider it.  (assigned as issue #1)

Edited by Steven Kamradt

Share this post


Link to post
19 hours ago, Patrick PREMARTIN said:

You can perhaps add a TImageCollection export with an icons selection list or the source code to use the SVG directly in a unit ? It could be a good alternative to use vector images in final projects.

This is now complete and available from the latest release from https://github.com/skamradt/SVGIconViewer

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×