diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-08 00:14:05 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-08 00:14:05 +0300 |
commit | bc2940e16a8a7839a120a45be9232b5adebbe751 (patch) | |
tree | 5952ce6503d0a084b7b44c16441caf56999ce303 /launcher/ui/MainWindow.cpp | |
parent | cf2393a50966f8dc84720f7d44538b0cb7649d46 (diff) | |
parent | 1131038fdb0093ef9c732b18d699b6176fc6d82c (diff) | |
download | PrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.tar.gz PrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.tar.bz2 PrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into settings
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 496738e3..515abf07 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -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) |