NOISSUE party hat for a party cat

On the 30th of November, it's been 10 years since the first
(documented) release of MultiMC. Party hats for everyone :)
This commit is contained in:
Petr Mrázek 2021-12-05 23:26:04 +01:00
parent cd513c02c4
commit 70d400f205
5 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,8 @@
This further refines Microsoft account support, along with small fixes related to modpack platforms and Java runtime detection.
It's also been 10 years since the first release of MultiMC. All background cats are now ready to party!
### Microsoft accounts
The account system now refreshes accounts in the background while the application is running.

View File

@ -3,5 +3,6 @@
<qresource prefix="/backgrounds">
<file alias="kitteh">catbgrnd2.png</file>
<file alias="catmas">catmas.png</file>
<file alias="cattiversary">cattiversary.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1322,8 +1322,18 @@ void MainWindow::setCatBackground(bool enabled)
if (enabled)
{
QDateTime now = QDateTime::currentDateTime();
QDateTime birthday(QDate(now.date().year(), 11, 30), QTime(0, 0));
QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0));
QString cat = (non_stupid_abs(now.daysTo(xmas)) <= 4) ? "catmas" : "kitteh";
QString cat;
if(non_stupid_abs(now.daysTo(xmas)) <= 4) {
cat = "catmas";
}
else if (non_stupid_abs(now.daysTo(birthday)) <= 12) {
cat = "cattiversary";
}
else {
cat = "kitteh";
}
view->setStyleSheet(QString(R"(
InstanceView
{