mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Qt: Fix HiDPI icon scaling
This commit is contained in:
@ -5,7 +5,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QPixmap>
|
||||
|
||||
// Store for various QPixmaps that will be used repeatedly.
|
||||
class Resources final
|
||||
@ -26,8 +25,17 @@ public:
|
||||
LOGO_SMALL
|
||||
};
|
||||
|
||||
static QIcon GetScaledIcon(const std::string& name);
|
||||
static QIcon GetScaledThemeIcon(const std::string& name);
|
||||
|
||||
static QPixmap GetScaledPixmap(const std::string& name);
|
||||
static QPixmap GetScaledThemePixmap(const std::string& name);
|
||||
|
||||
private:
|
||||
Resources() {}
|
||||
static QIcon GetIcon(const QString& name, const QString& dir);
|
||||
static QPixmap GetPixmap(const QString& name, const QString& dir);
|
||||
|
||||
static QList<QPixmap> m_platforms;
|
||||
static QList<QPixmap> m_countries;
|
||||
static QList<QPixmap> m_ratings;
|
||||
|
Reference in New Issue
Block a user