qgis / QGIS-Resources

27 stars 38 forks source link

Allow SVG icon colors to be controlled in QGIS #34

Open josephholler opened 3 years ago

josephholler commented 3 years ago

If the repository owners are interested, you can try replacing all instances of fill="none" in the SVG files with fill="param(fill)" in the Maki icons allowing the icon color to be controlled with the fill color option in the QGIS Symbol Selector.

For example, I've done this for the Maki icons here: https://github.com/GIS4DEV/maki

A slightly different replacement would be needed for icons in the gis_lab set.

This way, the icons can be styled with any color, rather than just black.

havatv commented 3 years ago

Great idea! A PR would b ewelcome

havatv commented 3 years ago

Greaimårovement!

A PR would be welcome

roya0045 commented 1 year ago

Great idea! A PR would b ewelcome

Made a script to convert svg to controlable ones, may still need minor tweaks to handle canses where the primary color isn't black, shouldn't be too hard to tweak.