Summary: | Make creating recolorable icons simpler | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kiconthemes | Reporter: | Ilya Fedin <fedin-ilja2010> |
Component: | general | Assignee: | Christoph Feck <cfeck> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | kde, kdelibs-bugs-null, nate, notmart |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/xdg/default-icon-theme/-/issues/24 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Icons |
Description
Ilya Fedin
2025-04-11 14:34:26 UTC
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? I attempted but the result is "Your comment has been automatically blocked as it is believed to contain spam. Please contact Sysadmin if you believe this to be incorrect." Can you attach it as a file? Created attachment 180368 [details]
Icons
I don't know why you say "existing KDE icon" while my use-case is to add KDE recoloring support to existing non-KDE icons. Here's an example of a non-KDE icon and a edited copy, the way I would like the recoloring engine to accept it.
So basically, if the icon engine saw
> class="ColorScheme-Text"
It would replace the value of that item's fill property with the appropriate color?
Yeah What do you think, Marco? |