phosphor-service-icontheme

XDG icon-theme lookup and a QML image provider.

Implements XDG Icon Theme Specification lookup and the Qt image provider that lets QML consume the resulting QImage payloads through a QUrl. IconThemeResolver detects the active theme, parses each theme's index.theme, follows Inherits= chains, falls back to Hicolor, and returns the best match by the spec's distance algorithm. IconImageProvider is mounted at image://phosphor-service-icontheme/ so a publisher such as a tray-item model can route raw icon blobs to QML.

Full API →

Key types

IconThemeResolver
Singleton XDG resolver: iconForName(name, size, scale) plus a decodePixmaps helper.
IconImageProvider
QQuickImageProvider with a process-global registry; setImage / clearImage from publishers.

Dependencies

See also

References