mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
NOISSUE kitty cat in a silly hat!
This commit is contained in:
parent
56a9b65efb
commit
2e58429b6a
3 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue