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.
Key types
IconThemeResolvericonForName(name, size, scale) plus a decodePixmaps helper.IconImageProviderQQuickImageProvider with a process-global registry; setImage / clearImage from publishers.Dependencies
QtCoreQtGuiQtQmlQtQuick
See also
References
- Full API reference → Doxygen-generated page for
PhosphorServiceIconTheme. - Namespace index Every symbol under
PhosphorServiceIconTheme::.