Replace getThemedIcon with APPLICATION->logo()
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@@ -33,9 +33,9 @@ JavaWizardWidget::JavaWizardWidget(QWidget* parent) : QWidget(parent)
|
||||
{
|
||||
m_availableMemory = Sys::getSystemRam() / Sys::mebibyte;
|
||||
|
||||
goodIcon = APPLICATION->getThemedIcon("status-good");
|
||||
yellowIcon = APPLICATION->getThemedIcon("status-yellow");
|
||||
badIcon = APPLICATION->getThemedIcon("status-bad");
|
||||
goodIcon = QIcon::fromTheme("status-good");
|
||||
yellowIcon = QIcon::fromTheme("status-yellow");
|
||||
badIcon = QIcon::fromTheme("status-bad");
|
||||
m_memoryTimer = new QTimer(this);
|
||||
setupUi();
|
||||
|
||||
@@ -532,7 +532,7 @@ void JavaWizardWidget::updateThresholds()
|
||||
|
||||
{
|
||||
auto height = m_labelMaxMemIcon->fontInfo().pixelSize();
|
||||
QIcon icon = APPLICATION->getThemedIcon(iconName);
|
||||
QIcon icon = QIcon::fromTheme(iconName);
|
||||
QPixmap pix = icon.pixmap(height, height);
|
||||
m_labelMaxMemIcon->setPixmap(pix);
|
||||
}
|
||||
|
||||
@@ -500,7 +500,7 @@ void MinecraftSettingsWidget::updateAccountsMenu(const SettingsObject& settings)
|
||||
QIcon face = account->getFace();
|
||||
|
||||
if (face.isNull())
|
||||
face = APPLICATION->getThemedIcon("noaccount");
|
||||
face = QIcon::fromTheme("noaccount");
|
||||
|
||||
m_ui->instanceAccountSelector->addItem(face, account->profileName(), i);
|
||||
if (i == accountIndex)
|
||||
|
||||
@@ -228,7 +228,7 @@ void PageContainer::showPage(int row)
|
||||
} else {
|
||||
m_pageStack->setCurrentIndex(0);
|
||||
m_header->setText(QString());
|
||||
m_iconHeader->setIcon(APPLICATION->getThemedIcon("bug"));
|
||||
m_iconHeader->setIcon(QIcon::fromTheme("bug"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user