diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index f144fcbd..5880762a 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1245,16 +1245,20 @@ void MainWindow::setCatBackground(bool enabled) { if (enabled) { - view->setStyleSheet(R"( + QDateTime now = QDateTime::currentDateTime(); + QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0)); + ; + QString cat = (abs(now.daysTo(xmas)) <= 4) ? "catmas" : "kitteh"; + view->setStyleSheet(QString(R"( GroupView { - background-image: url(:/backgrounds/kitteh); + background-image: url(:/backgrounds/%1); background-attachment: fixed; background-clip: padding; background-position: top right; background-repeat: none; background-color:palette(base); -})"); +})").arg(cat)); } else { diff --git a/application/resources/backgrounds/backgrounds.qrc b/application/resources/backgrounds/backgrounds.qrc index 55de139e..83505635 100644 --- a/application/resources/backgrounds/backgrounds.qrc +++ b/application/resources/backgrounds/backgrounds.qrc @@ -2,5 +2,6 @@ catbgrnd2.png + catmas.png diff --git a/application/resources/backgrounds/catmas.png b/application/resources/backgrounds/catmas.png new file mode 100644 index 00000000..cca96c63 Binary files /dev/null and b/application/resources/backgrounds/catmas.png differ