Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Delphi-Feather-Icons

Delphi unit for Feather Icons

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi Feather Icons (.SVG)

The Feather Icons library to use within Delphi.

Bootstrap logo

Open source SVG icon library with over 250 icons.

Feather Icons preview

Usage

SVG Code

pascal
uses uFeatherIcons

...

// Returns SVG Code
var HomeIconSVG := GetFeatherIcon('home');
var TelevisionIconSVG := GetFeatherIcon('tv');
var BellIconSVG := GetFeatherIcon('bell');

// Returns SVG Code with Width/Height set to 24
var HomeIconSVG := GetFeatherIcon('home', 24);
var TelevisionIconSVG := GetFeatherIcon('tv', 24);
var BellIconSVG := GetFeatherIcon('bell', 24);

// Returns SVG Code with Width/Height set to 24 and color set to purple (#800080):
var HomeIconSVG := GetFeatherIcon('home', 24, 'purple');
var TelevisionIconSVG := GetFeatherIcon('tv', 24, '#800080');
var BellIconSVG := GetFeatherIcon('bell', 24, 'purple');

SVG Path Data

pascal
uses uFeatherIcons

...

// Returns SVG Path Data Text:
var HomeIconSVGPathData := GetFeatherIconPathData('home');
var TelevisionIconSVGPathData := GetFeatherIconPathData('tv');
var BellIconSVGPathData := GetFeatherIconPathData('bell');

// Returns SVG Path Data Text with Width/Height set to 24:
var HomeIconSVGPathData := GetFeatherIconPathData('home', 24);
var TelevisionIconSVGPathData := GetFeatherIconPathData('tv', 24);
var BellIconSVGPathData := GetFeatherIconPathData('bell', 24);

// Returns SVG Path Data Text with Width/Height set to 24 and color set to purple (#800080):
var HomeIconSVGPathData := GetFeatherIconPathData('home', 24, 'purple'); 
var TelevisionIconSVGPathData := GetFeatherIconPathData('tv', 24, '#800080'); 
var BellIconSVGPathData := GetFeatherIconPathData('bell', 24, 'purple');

SVG Base64 Image

pascal
uses uFeatherIcons

...

// Returns SVG Base64 Image
var HomeIconSVGBase64 := GetFeatherIconBase64('home');
var TelevisionIconSVGBase64 := GetFeatherIconBase64('tv');
var BellIconSVGBase64 := GetFeatherIconBase64('bell');

// Returns SVG Base64 Image with Width/Height set to 24
var HomeIconSVGBase64 := GetFeatherIconBase64('home', 24);
var TelevisionIconSVGBase64 := GetFeatherIconBase64('tv', 24);
var BellIconSVGBase64 := GetFeatherIconBase64('bell', 24);

// Returns SVG Base64 Image with Width/Height set to 24 and color set to purple (#800080):
var HomeIconSVGBase64 := GetFeatherIconBase64('home', 24, 'purple');
var TelevisionIconSVGBase64 := GetFeatherIconBase64('tv', 24, '#800080');
var BellIconSVGBase64 := GetFeatherIconBase64('bell', 24, 'purple');

Other ways to use Feather Icons: [https://github.com/feathericons/feather](https://github.com/feathericons/feather)

License

  • Feather Icons are free and open source (MIT).

Other Delphi Icon Libraries