mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 12:26:58 +03:00
feat: spooky cat for halloween
Signed-off-by: leozamboni <leonardonunes169@gmail.com>
This commit is contained in:
parent
8f045af867
commit
9f5537d936
3 changed files with 6 additions and 4 deletions
|
|
@ -1560,12 +1560,13 @@ void MainWindow::setCatBackground(bool 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));
|
||||
QDateTime halloween(QDate(now.date().year(), 10, 31), QTime(0, 0));
|
||||
QString cat = APPLICATION->settings()->get("BackgroundCat").toString();
|
||||
|
||||
if(non_stupid_abs(now.daysTo(xmas)) <= 4) {
|
||||
if (non_stupid_abs(now.daysTo(xmas)) <= 4) {
|
||||
cat += "-xmas";
|
||||
}
|
||||
else if (non_stupid_abs(now.daysTo(birthday)) <= 12) {
|
||||
} else if (cat == "kitteh" && non_stupid_abs(now.daysTo(halloween)) <= 4) {
|
||||
cat += "-ween";
|
||||
} else if (non_stupid_abs(now.daysTo(birthday)) <= 12) {
|
||||
cat += "-bday";
|
||||
}
|
||||
view->setStyleSheet(QString(R"(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue