Skip to content

Commit

Permalink
Change default instance and custom icon to launcher logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeZDev committed Sep 3, 2022
1 parent 5d8f83f commit 02912e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions launcher/icons/IconList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ QIcon IconList::getIcon(const QString &key) const
return icons[icon_index].icon();

// Fallback for icons that don't exist.
icon_index = getIconIndex("grass");
icon_index = getIconIndex("polymc");

if (icon_index != -1)
return icons[icon_index].icon();
Expand All @@ -459,7 +459,7 @@ QIcon IconList::getIcon(const QString &key) const

int IconList::getIconIndex(const QString &key) const
{
auto iter = name_index.find(key == "default" ? "grass" : key);
auto iter = name_index.find(key == "default" ? "polymc" : key);
if (iter != name_index.end())
return *iter;

Expand Down
2 changes: 1 addition & 1 deletion launcher/ui/pages/modplatform/VanillaPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class VanillaPage : public QWidget, public BasePage
}
virtual QIcon icon() const override
{
return APPLICATION->getThemedIcon("minecraft");
return APPLICATION->getThemedIcon("launcher");
}
virtual QString id() const override
{
Expand Down

0 comments on commit 02912e7

Please sign in to comment.