diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-08 00:54:32 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-08 00:54:32 +0300 |
commit | d33de2e4277dfcd090a36c96e09148ea6a5d2e55 (patch) | |
tree | 273aa60c91614ca525033f1bec79ad5195b96ddb /launcher/ui/MainWindow.cpp | |
parent | 9b9d439fce9408712a594bb294e3bd5f108e31bc (diff) | |
download | PrismLauncher-d33de2e4277dfcd090a36c96e09148ea6a5d2e55.tar.gz PrismLauncher-d33de2e4277dfcd090a36c96e09148ea6a5d2e55.tar.bz2 PrismLauncher-d33de2e4277dfcd090a36c96e09148ea6a5d2e55.zip |
Made cat scalable
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index 834f57dd..4b77dd1c 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -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) |