move colorizedIcon to gui_settings

This commit is contained in:
Megamouse 2017-07-13 01:30:55 +02:00 committed by Ivan
parent a21ed06d27
commit ef60809219
5 changed files with 81 additions and 74 deletions

View file

@ -7,6 +7,7 @@
#include <QVariant>
#include <QSize>
#include <QColor>
#include <QBitmap>
typedef struct GUI_SAVE
{
@ -146,6 +147,15 @@ public:
QStringList GetStylesheetEntries();
QStringList GetGameListCategoryFilters();
/**
Creates a custom colored QIcon based on another QIcon
@param icon the icon to colorize
@param oldColor the current color of icon
@param newColor the desired color for the new icon
@param useSpecialMasks only used for icons with white parts and disc game icon
*/
static QIcon colorizedIcon(const QIcon& icon, const QColor& oldColor, const QColor& newColor, bool useSpecialMasks = false);
public Q_SLOTS:
void Reset(bool removeMeta = false);