fix: add flat_white to code
This commit is contained in:
parent
a6e65dfc7a
commit
99e1c13e80
@ -602,6 +602,7 @@ SET(LAUNCHER_SOURCES
|
||||
resources/OSX/OSX.qrc
|
||||
resources/iOS/iOS.qrc
|
||||
resources/flat/flat.qrc
|
||||
resources/flat_white/flat_white.qrc
|
||||
resources/documents/documents.qrc
|
||||
../${Launcher_Branding_LogoQRC}
|
||||
|
||||
|
@ -84,6 +84,7 @@ int main(int argc, char *argv[])
|
||||
Q_INIT_RESOURCE(OSX);
|
||||
Q_INIT_RESOURCE(iOS);
|
||||
Q_INIT_RESOURCE(flat);
|
||||
Q_INIT_RESOURCE(flat_white);
|
||||
return app.exec();
|
||||
}
|
||||
case Application::Failed:
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Icon Theme]
|
||||
Name=White Flat
|
||||
Name=Flat (White)
|
||||
Comment=White version of the flat icons (for dark mode)
|
||||
Inherits=multimc
|
||||
Directories=scalable
|
||||
|
@ -310,9 +310,12 @@ void LauncherPage::applySettings()
|
||||
s->set("IconTheme", "flat");
|
||||
break;
|
||||
case 7:
|
||||
s->set("IconTheme", "multimc");
|
||||
s->set("IconTheme", "flat_white");
|
||||
break;
|
||||
case 8:
|
||||
s->set("IconTheme", "multimc");
|
||||
break;
|
||||
case 9:
|
||||
s->set("IconTheme", "custom");
|
||||
break;
|
||||
}
|
||||
@ -408,14 +411,18 @@ void LauncherPage::loadSettings()
|
||||
{
|
||||
ui->themeComboBox->setCurrentIndex(6);
|
||||
}
|
||||
else if (theme == "multimc")
|
||||
else if (theme == "flat_white")
|
||||
{
|
||||
ui->themeComboBox->setCurrentIndex(7);
|
||||
}
|
||||
else if (theme == "custom")
|
||||
else if (theme == "multimc")
|
||||
{
|
||||
ui->themeComboBox->setCurrentIndex(8);
|
||||
}
|
||||
else if (theme == "custom")
|
||||
{
|
||||
ui->themeComboBox->setCurrentIndex(9);
|
||||
}
|
||||
|
||||
{
|
||||
auto currentTheme = s->get("ApplicationTheme").toString();
|
||||
|
@ -300,6 +300,11 @@
|
||||
<string>Flat</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Flat (White)</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Legacy</string>
|
||||
|
Loading…
Reference in New Issue
Block a user