SUMMARY Right now this requires creating a <style> tag with a CSS rule for ColorScheme classes in use and fill=currentColor in each recolorable element. GTK can recolor icons without all this, just add a class and the job done. No <style> tags, no fill=currentColor. This would make creating such icons by third parties way more appealing as they wouldn't have to think what to do when they have an already existing icons having multiple elements with different `fill` values yet logically mapping to the same ColorScheme class. It will be a one line change for each element. STEPS TO REPRODUCE 1. Try to make a recolorable icon OBSERVED RESULT As easy as in GTK world EXPECTED RESULT Harder :( ADDITIONAL INFORMATION I hope this isn't a technical limitation in QtSvg or something like that... But this is a valid feature request regardless I believe.
Here's the way GTK does this: https://gitlab.gnome.org/GNOME/gtk/-/blob/a6792b83e33a4e2bc3143dd626b345f5c27d858c/gtk/gdktextureutils.c#L208
Our way supports more than 4 colors; GNOME's doesn't. Trade-offs either way, and us syncing to GNOME's thing wouldn't make sense for our use cases, any more than I suspect them syncing to ours would suit them. Ultimately this needs to be discussed upstream and turned into a standard everyone can support. See https://gitlab.freedesktop.org/xdg/default-icon-theme/-/issues/24
But I didn't ask to limit to 4 colors. I asked kiconthemes to add <style> tags automatically rather than icon creator. And to not to force the icon creator to set fill=currentColor (apparently by using `fill`instead of `color` in CSS rules?). GTK doesn't require icon creator to do anything of that so kiconthemes should be able to not require too. I also don't think it has to depend on upstream discussion, recolorization is already existing while upstre discussion has stuck. If you won't do any enhancements until upstream decides something, it likely meant no enhancements possible at all.
Can you supply an example of an existing KDE Icon modified to be formatted the way you'd like KIconThemes to support?