Replace getThemedIcon with APPLICATION->logo()
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "ModrinthModel.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "BuildConfig.h"
|
||||
#include "Json.h"
|
||||
#include "modplatform/ModIndex.h"
|
||||
@@ -91,7 +92,7 @@ auto ModpackListModel::data(const QModelIndex& index, int role) const -> QVarian
|
||||
if (m_logoMap.contains(pack->logoName))
|
||||
return m_logoMap.value(pack->logoName);
|
||||
|
||||
QIcon icon = APPLICATION->getThemedIcon("screenshot-placeholder");
|
||||
QIcon icon = QIcon::fromTheme("screenshot-placeholder");
|
||||
((ModpackListModel*)this)->requestLogo(pack->logoName, pack->logoUrl);
|
||||
return icon;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Application.h"
|
||||
#include "modplatform/ModIndex.h"
|
||||
#include "modplatform/modrinth/ModrinthAPI.h"
|
||||
#include "ui/dialogs/NewInstanceDialog.h"
|
||||
@@ -64,7 +63,7 @@ class ModrinthPage : public QWidget, public ModpackProviderBasePage {
|
||||
~ModrinthPage() override;
|
||||
|
||||
QString displayName() const override { return tr("Modrinth"); }
|
||||
QIcon icon() const override { return APPLICATION->getThemedIcon("modrinth"); }
|
||||
QIcon icon() const override { return QIcon::fromTheme("modrinth"); }
|
||||
QString id() const override { return "modrinth"; }
|
||||
QString helpPage() const override { return "Modrinth-platform"; }
|
||||
|
||||
|
||||
@@ -38,8 +38,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
#include "modplatform/ResourceAPI.h"
|
||||
|
||||
#include "ui/pages/modplatform/DataPackPage.h"
|
||||
@@ -57,7 +55,7 @@ static inline QString displayName()
|
||||
}
|
||||
static inline QIcon icon()
|
||||
{
|
||||
return APPLICATION->getThemedIcon("modrinth");
|
||||
return QIcon::fromTheme("modrinth");
|
||||
}
|
||||
static inline QString id()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user