NOISSUE herp derp custom icon theme support
* Put icon theme in iconthemes/custom/ * Select 'Custom' in the UI. * ... * Maybe it won't explode.
This commit is contained in:
parent
e76e6329cd
commit
35836c7709
@ -537,6 +537,11 @@ void MultiMC::initIcons()
|
|||||||
m_icons->directoryChanged(value.toString());
|
m_icons->directoryChanged(value.toString());
|
||||||
});
|
});
|
||||||
ENV.registerIconList(m_icons);
|
ENV.registerIconList(m_icons);
|
||||||
|
|
||||||
|
// set icon theme search path!
|
||||||
|
auto searchPaths = QIcon::themeSearchPaths();
|
||||||
|
searchPaths.append("iconthemes");
|
||||||
|
QIcon::setThemeSearchPaths(searchPaths);
|
||||||
}
|
}
|
||||||
|
|
||||||
void appDebugOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
void appDebugOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||||
|
@ -314,6 +314,9 @@ void MultiMCPage::applySettings()
|
|||||||
case 6:
|
case 6:
|
||||||
s->set("IconTheme", "iOS");
|
s->set("IconTheme", "iOS");
|
||||||
break;
|
break;
|
||||||
|
case 7:
|
||||||
|
s->set("IconTheme", "custom");
|
||||||
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
s->set("IconTheme", "multimc");
|
s->set("IconTheme", "multimc");
|
||||||
@ -411,6 +414,10 @@ void MultiMCPage::loadSettings()
|
|||||||
{
|
{
|
||||||
ui->themeComboBox->setCurrentIndex(6);
|
ui->themeComboBox->setCurrentIndex(6);
|
||||||
}
|
}
|
||||||
|
else if (theme == "custom")
|
||||||
|
{
|
||||||
|
ui->themeComboBox->setCurrentIndex(7);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->themeComboBox->setCurrentIndex(0);
|
ui->themeComboBox->setCurrentIndex(0);
|
||||||
|
@ -391,6 +391,11 @@
|
|||||||
<string notr="true">iOS</string>
|
<string notr="true">iOS</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Custom</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
|
Loading…
Reference in New Issue
Block a user