Merge pull request #1127 from Trial97/scale_cat

This commit is contained in:
Tayou 2023-07-03 15:46:56 +02:00 committed by Sefa Eyeoglu
parent 3cc68fcea4
commit 7025f75903
No known key found for this signature in database
GPG key ID: E13DFD4B47127951
3 changed files with 31 additions and 20 deletions

View file

@ -927,21 +927,8 @@ void MainWindow::onCatToggled(bool state)
void MainWindow::setCatBackground(bool enabled)
{
if (enabled) {
view->setStyleSheet(QString(R"(
InstanceView
{
background-image: url(:/backgrounds/%1);
background-attachment: fixed;
background-clip: padding;
background-position: bottom right;
background-repeat: none;
background-color:palette(base);
})")
.arg(ThemeManager::getCatImage()));
} else {
view->setStyleSheet(QString());
}
view->setPaintCat(enabled);
view->viewport()->repaint();
}
void MainWindow::runModalTask(Task *task)