Skip to content

shaunroselt/Delphi-Feather-Icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

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

License

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

Other Delphi Icon Libraries

About

Delphi unit for Feather Icons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages