How to change glyphicons colour Native app
Hi, i’m adding some glyphicons to my native app and I was wondering if someone could give me some direction on how I can change the icon colour?
If you are adding your own custom SVG icons these are the steps:
- Open the svg file in your favorite IDE like Visual Studio Code, remove all the ‘fill=”...”’ properties and save your file
- Now add the SVG to your image collection
- Create a class in your JS stylesheet like so
- When using your icon on a page, give it a class which corresponds with your stylesheet
-- EDIT – If you are using default Mendix icons, you can skip step 1 and 2 as these al already colorless.
This is how I’m using the glyphicon;