mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 10:39:59 +00:00
Qt: Fix low-resolution icon
This commit is contained in:
parent
5c83e18fbd
commit
4f63d7f204
9 changed files with 135 additions and 3 deletions
|
@ -14,6 +14,10 @@
|
|||
#include "DolphinQt2/Resources.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "DolphinQt2/QtUtils/WinIconHelper.h"
|
||||
#endif
|
||||
|
||||
QList<QPixmap> Resources::m_platforms;
|
||||
QList<QPixmap> Resources::m_countries;
|
||||
QList<QPixmap> Resources::m_ratings;
|
||||
|
@ -128,3 +132,17 @@ QPixmap Resources::GetMisc(int id)
|
|||
{
|
||||
return m_misc[id];
|
||||
}
|
||||
|
||||
QIcon Resources::GetAppIcon()
|
||||
{
|
||||
QIcon icon;
|
||||
|
||||
#ifdef _WIN32
|
||||
icon = WinIconHelper::GetNativeIcon();
|
||||
#else
|
||||
icon.addPixmap(GetScaledPixmap("dolphin_logo"));
|
||||
icon.addPixmap(GetScaledPixmap("Dolphin"));
|
||||
#endif
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue