6#include <PhosphorServices/phosphorservices_export.h>
47 [[nodiscard]] QImage
iconForName(
const QString& name,
int size,
int scale = 1,
48 const QString& extraThemeDir = {})
const;
53 [[nodiscard]]
static QImage
decodePixmaps(
const QList<QPair<QSize, QByteArray>>& pixmaps,
int size);
63 std::unique_ptr<Private> d;
XDG Icon Theme Specification 0.13 resolver.
Definition IconThemeResolver.h:29
QImage iconForName(const QString &name, int size, int scale=1, const QString &extraThemeDir={}) const
Look up an icon by name.
QString themeName() const
void setThemeName(const QString &themeName)
Force a theme override.
static IconThemeResolver * instance()
Process-wide singleton. Created lazily on first call.
static QImage decodePixmaps(const QList< QPair< QSize, QByteArray > > &pixmaps, int size)
Bypass theme lookup and decode a raw IconPixmap byte stream straight off the wire (ARGB32 in network ...
Definition DBusMenuModel.h:15