mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
GameListModel: update icons when theme changes
This commit is contained in:
parent
5a4ee87d6a
commit
9bdbd02efc
3 changed files with 19 additions and 2 deletions
|
@ -82,12 +82,20 @@ void Resources::Init()
|
|||
{
|
||||
m_countries.append(GetScaledPixmap(country));
|
||||
}
|
||||
for (int stars = 0; stars <= 5; stars++)
|
||||
m_ratings.append(GetScaledThemePixmap("rating" + std::to_string(stars)));
|
||||
|
||||
m_misc.append(GetScaledPixmap("nobanner"));
|
||||
m_misc.append(GetScaledPixmap("dolphin_logo"));
|
||||
m_misc.append(GetScaledPixmap("Dolphin"));
|
||||
|
||||
QObject::connect(&Settings::Instance(), &Settings::ThemeChanged, Resources::InitThemeIcons);
|
||||
InitThemeIcons();
|
||||
}
|
||||
|
||||
void Resources::InitThemeIcons()
|
||||
{
|
||||
m_ratings = {GetScaledThemePixmap("rating0"), GetScaledThemePixmap("rating1"),
|
||||
GetScaledThemePixmap("rating2"), GetScaledThemePixmap("rating3"),
|
||||
GetScaledThemePixmap("rating4"), GetScaledThemePixmap("rating5")};
|
||||
}
|
||||
|
||||
QPixmap Resources::GetPlatform(int platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue