Made cat scalable

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-06-08 00:54:32 +03:00
parent 9b9d439fce
commit d33de2e427
3 changed files with 28 additions and 20 deletions

View File

@ -901,21 +901,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->setCatVisible(enabled);
view->viewport()->repaint();
}
void MainWindow::runModalTask(Task *task)