Description:
Currently, GNOME desktop environments (e.g., GNOME Shell, Nautilus) have limited or no support for rendering dynamic SVG icons that adapt their appearance based on system theme (such as using prefers-color-scheme media query, CSS variables, or currentColor). These theme-adaptive SVGs are increasingly common in web applications and PWAs.
Problem:
When installing web apps or PWAs on Linux desktops, especially on GNOME, icons provided as dynamic SVGs often appear blank, broken, or missing in application launchers, docks, and menus. This reduces usability and creates a confusing user experience.
Proposal:
Add native support in GNOME’s icon rendering stack to fully interpret and render SVG icons that include CSS-based theming or media queries for light/dark modes. This will enable seamless integration of modern web and PWA icons with the GNOME desktop environment.
Benefits:
Improved visual consistency and user experience for PWAs and web apps on GNOME.
Better support for modern icon design trends using SVG and CSS.
Avoid the need for fallback PNG icons or manual icon replacement by users.
Additional info:
This feature may require enhancements in libraries such as libsvg, librsvg, or GNOME Shell’s icon handling components.