11-11-2019 14:38 PM - last edited 03-18-2022 06:19 AM
[13-mar-2022] Update v2.0
This application will allow you to generate the SVG code for any of the official Office UI Fabric Icons library. You will then be able to use that SVG code as the Image property of an Image control in your application.
All details and important notes about how to use the component can be found here: OfficeUIFabricIconGenerator.
I hope you will enjoy this component and that you will find it usefull. If it does, please consider giving it a thumbs up.
Emmanuel (@R3dKap)
Wait, what?
Why would someone go to the trouble of selecting these only to not be able to publish them with your app?
@millsapril wrote:Wait, what?
Why would someone go to the trouble of selecting these only to not be able to publish them with your app?
I'm not sure what you mean.
The purpose of this app is to quickly get the SVG vector image data of authentic Office UI Fabric icons to use in our projects. For example, the reason I found this project is because on SPFx listview command set projects, I have to use an image url or data uri to change the command bar icon, I couldn't use html or react components, and this app from R3dKap let me use a real Office UI Fabric icon by giving me a way to easily retrieve the SVG image data that I could then copy and convert to base64 to use in my project to maintain style continuity.
Excellent solution. I just made a small modification to the component. The issue is that if the selected icon color is white, then it is kind of hard to see it. What I did was that if the color selected in text in txtIconColorOFI.Text is some form of white, then ctrRightPaneOFI.Fill is a darker color. For example:
If(txtIconColorOFI.Text = "#FFFFFFFF", ColorValue("#DEDEDEFF"),RGBA(0, 0, 0, 0))
You can add multiple conditions depending if you use RGB, #rrggbbaa, or if caps are used or not.
I'm sure this can be improved, but it works for me for now.
I hope is helpful for someone else out there.