Skip to content

MarwanFr/LucideAvaloniaUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucide Icons for AvaloniaUI

NuGet Version GitHub License

Lucide Icons for AvaloniaUI

Over 1690 icons for AvaloniaUI

What is it?

Lucide Icons for AvaloniaUI is a library that allows you to integrate over 1690 modern and elegant icons into your AvaloniaUI projects. This library offers a wide range of icons to enhance the user interface of your applications. Icons are sourced from Lucide v1.7.0.

What is it for?

This library is ideal for:

  • Extensive Collection: Access to over 1690 high-quality icons.
  • Scalability: Icons are vector-based, ensuring they look sharp at any size.
  • Ease of Use: Simple integration with AvaloniaUI projects.
  • Open Source: Free to use and modify, fostering community collaboration and improvement.

Installation

Warning

This library is compatible only with AvaloniaUI version 11.1.0-beta1 or higher. It does not support earlier versions.

To install the library, you can use NuGet with the following command:

dotnet add package LucideAvalonia

Usage

To use the Lucide Icons in your AvaloniaUI project, add the following namespace declaration to the header of your AXAML file:

xmlns:lucideAvalonia="clr-namespace:LucideAvalonia;assembly=LucideAvalonia"

Integrating Lucide Icons into your AvaloniaUI project is straightforward. Below is an example demonstrating how to add a Heart icon to your AXAML file:

<lucideAvalonia:Lucide Icon="Heart" StrokeBrush="Red" StrokeThickness="1.5" Width="22" Height="22"/>

You can customize the appearance of the icons using various properties:

  • Icon: Specifies the name of the icon.
  • StrokeBrush: Defines the color of the icon stroke.
  • StrokeThickness: Sets the thickness of the icon stroke.
  • Width and Height: Adjust the size of the icon.

Updating Icons

To regenerate icons from a newer Lucide release, run the included Python script (requires Python 3.10+, no external dependencies):

python tools/generate_icons.py --version <lucide-version>

This downloads the Lucide SVGs and regenerates both LucideAvalonia/Enum/LucideIconNames.cs and LucideAvalonia/Lucide/ResourcesIcons.axaml.

Contribution

We welcome contributions from the community to help improve and expand this library. If you encounter any issues or have suggestions, please open an issue or submit a pull request on our GitHub repository.

Contributors

MarwanFr
MarwanFr
Reimnop
Reimnop
seltzdesign
seltzdesign

Credit

This project is made possible thanks to the following:

  • AvaloniaUI: The versatile and powerful UI framework.
  • Lucide: The source of these beautifully designed icons.

About

A library for AvaloniaUI that integrates Lucide icons into your Avalonia applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors