mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Add helpers to tint svg files
This commit is contained in:
20
common/themes/icon_utils.h
Normal file
20
common/themes/icon_utils.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef ICON_UTILS_H
|
||||
#define ICON_UTILS_H
|
||||
|
||||
#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 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 QString &themeName,
|
||||
const QString &suffix = QString());
|
||||
QString createMenuArrowSvg(const QColor &color, const QString &themeName);
|
||||
|
||||
#endif // ICON_UTILS_H
|
||||
Reference in New Issue
Block a user