add rory
Signed-off-by: Santiago Cézar <santiagocezar2013@gmail.com> Co-authored-by: Ashtaka <66513643+AshtakaOOf@users.noreply.github.com>
This commit is contained in:
@ -1560,15 +1560,15 @@ 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));
|
||||
QString cat;
|
||||
QString cat = APPLICATION->settings()->get("BackgroundCat").toString();
|
||||
|
||||
qDebug() << "The choosen cat is " << cat << ".";
|
||||
|
||||
if(non_stupid_abs(now.daysTo(xmas)) <= 4) {
|
||||
cat = "catmas";
|
||||
cat += "-xmas";
|
||||
}
|
||||
else if (non_stupid_abs(now.daysTo(birthday)) <= 12) {
|
||||
cat = "cattiversary";
|
||||
}
|
||||
else {
|
||||
cat = "kitteh";
|
||||
cat += "-bday";
|
||||
}
|
||||
view->setStyleSheet(QString(R"(
|
||||
InstanceView
|
||||
@ -1576,10 +1576,11 @@ InstanceView
|
||||
background-image: url(:/backgrounds/%1);
|
||||
background-attachment: fixed;
|
||||
background-clip: padding;
|
||||
background-position: top right;
|
||||
background-position: bottom left;
|
||||
background-repeat: none;
|
||||
background-color:palette(base);
|
||||
})").arg(cat));
|
||||
})")
|
||||
.arg(cat));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user