Add new function to recolor svg files supporting 3 placeholders

This commit is contained in:
luisangelsm
2026-02-01 14:26:22 +01:00
parent 6b3fcc63d3
commit 36899b4e06
2 changed files with 34 additions and 12 deletions

View File

@ -3,18 +3,24 @@
#include <QtGui>
QString recolorSvgXML(QString &svg, const QString &placeHolder, const QColor &color);
QString readSvg(const QString &resourcePath);
QString writeSvg(const QString &svg, const QString &resourcePath, const QString &themeName);
QString recolorSvgXML(QString &svg, const QString &placeHolder, const QColor &color);
QString recoloredSvgToThemeFile(const QString &resourcePath,
const QColor &color, // #f0f (magenta)
const QString &themeName,
const QString &suffix = QString());
QString recoloredSvgToThemeFile(const QString &resourcePath,
const QColor &color1, // #f0f (magenta)
const QColor &color2, // #0ff (cyan)
const QString &themeName,
const QString &suffix = QString());
QString recoloredSvgToThemeFile(const QString &resourcePath,
const QColor &color, // #f0f (magenta)
const QColor &color1, // #f0f (magenta)
const QColor &color2, // #0ff (cyan)
const QColor &color3, // #ff0 (yellow)
const QString &themeName,
const QString &suffix = QString());
QString createMenuArrowSvg(const QColor &color, const QString &themeName);
#endif // ICON_UTILS_H