Fix some issues in the newly added themes

This commit is contained in:
Petr Mrázek 2014-10-27 00:41:40 +01:00
parent 547f6f77d0
commit 9e8a74cc89
4 changed files with 11 additions and 10 deletions

View File

@ -14,8 +14,7 @@
<string>MultiMC 5</string>
</property>
<property name="windowIcon">
<iconset resource="../resources/multimc/multimc.qrc">
<normaloff>:/icons/multimc/scalable/apps/multimc.svg</normaloff>:/icons/multimc/scalable/apps/multimc.svg</iconset>
<iconset theme="multimc"/>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QHBoxLayout" name="horizontalLayout">
@ -502,7 +501,7 @@
<include location="../resources/pe_dark/pe_dark.qrc"/>
<include location="../resources/pe_light/pe_light.qrc"/>
<include location="../resources/pe_blue/pe_blue.qrc"/>
<include location="../resources/pe_clolored/pe_colored.qrc"/>
<include location="../resources/pe_colored/pe_colored.qrc"/>
<include location="../resources/multimc/multimc.qrc"/>
<include location="../resources/instances/instances.qrc"/>
<include location="../resources/OSX/OSX.qrc"/>

View File

@ -81,7 +81,7 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDia
ui->urlLabel->setOpenExternalLinks(true);
ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64));
ui->icon->setPixmap(QIcon::fromTheme("multimc").pixmap(64));
ui->title->setText("MultiMC 5 " + BuildConfig.printableVersionString());
ui->versionLabel->setText(tr("Version") +": " + BuildConfig.printableVersionString());

View File

@ -58,9 +58,6 @@
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../../resources/multimc/multimc.qrc">:/icons/multimc/scalable/apps/multimc.svg</pixmap>
</property>
</widget>
</item>
<item>
@ -464,8 +461,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>98</width>
<height>88</height>
<width>689</width>
<height>311</height>
</rect>
</property>
<attribute name="label">

View File

@ -37,7 +37,12 @@ public:
}
QIcon icon() const override
{
return QIcon::fromTheme("externaltools");
auto icon = QIcon::fromTheme("externaltools");
if(icon.isNull())
{
icon = QIcon::fromTheme("loadermods");
}
return icon;
}
QString id() const override
{