mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 15:16:22 +00:00
Qt: Fix HiDPI icon scaling
This commit is contained in:
parent
9fa1e8f45f
commit
1737e81b16
4 changed files with 91 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue