fix: reorganize icon themes

Rename MultiMC to Legacy
Simple (Colored) is now the first icon theme
Custom is now the last icon theme, which also fixes a loading issue when
Legacy was selected
Fix loading of Legacy theme
This commit is contained in:
Sefa Eyeoglu 2022-03-05 20:29:54 +01:00
parent ca211558b5
commit 3697d70b48
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 17 additions and 17 deletions

View File

@ -247,16 +247,16 @@ void LauncherPage::applySettings()
switch (ui->themeComboBox->currentIndex())
{
case 0:
s->set("IconTheme", "pe_dark");
s->set("IconTheme", "pe_colored");
break;
case 1:
s->set("IconTheme", "pe_light");
break;
case 2:
s->set("IconTheme", "pe_blue");
s->set("IconTheme", "pe_dark");
break;
case 3:
s->set("IconTheme", "pe_colored");
s->set("IconTheme", "pe_blue");
break;
case 4:
s->set("IconTheme", "OSX");
@ -268,10 +268,10 @@ void LauncherPage::applySettings()
s->set("IconTheme", "flat");
break;
case 7:
s->set("IconTheme", "custom");
s->set("IconTheme", "multimc");
break;
case 8:
s->set("IconTheme", "multimc");
s->set("IconTheme", "custom");
break;
}
@ -324,7 +324,7 @@ void LauncherPage::loadSettings()
m_currentUpdateChannel = s->get("UpdateChannel").toString();
//FIXME: make generic
auto theme = s->get("IconTheme").toString();
if (theme == "pe_dark")
if (theme == "pe_colored")
{
ui->themeComboBox->setCurrentIndex(0);
}
@ -332,11 +332,11 @@ void LauncherPage::loadSettings()
{
ui->themeComboBox->setCurrentIndex(1);
}
else if (theme == "pe_blue")
else if (theme == "pe_dark")
{
ui->themeComboBox->setCurrentIndex(2);
}
else if (theme == "pe_colored")
else if (theme == "pe_blue")
{
ui->themeComboBox->setCurrentIndex(3);
}

View File

@ -264,7 +264,7 @@
</property>
<item>
<property name="text">
<string>Simple (Dark Icons)</string>
<string>Simple (Colored Icons)</string>
</property>
</item>
<item>
@ -274,12 +274,12 @@
</item>
<item>
<property name="text">
<string>Simple (Blue Icons)</string>
<string>Simple (Dark Icons)</string>
</property>
</item>
<item>
<property name="text">
<string>Simple (Colored Icons)</string>
<string>Simple (Blue Icons)</string>
</property>
</item>
<item>
@ -294,7 +294,12 @@
</item>
<item>
<property name="text">
<string notr="true">Flat</string>
<string>Flat</string>
</property>
</item>
<item>
<property name="text">
<string>Legacy</string>
</property>
</item>
<item>
@ -302,11 +307,6 @@
<string>Custom</string>
</property>
</item>
<item>
<property name="text">
<string>MultiMC</string>
</property>
</item>
</widget>
</item>
<item row="1" column="1">