mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
move colorizedIcon to gui_settings
This commit is contained in:
parent
a21ed06d27
commit
ef60809219
5 changed files with 81 additions and 74 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue