1
0
Fork 0
mirror of synced 2024-05-19 12:02:54 +12:00

LoadingWidget: Use @MultisampledNight 's animation

Thanks, UwU
This commit is contained in:
loathingKernel 2023-09-04 23:27:26 +03:00
parent d6809c287e
commit 4726849403
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
4 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 KiB

Binary file not shown.

View file

@ -13,5 +13,6 @@
<qresource prefix="images">
<file alias="Rare.png">images/Rare.png</file>
<file alias="loader.gif">images/loader.gif</file>
<file alias="loader.webp">images/loader.webp</file>
</qresource>
</RCC>

View file

@ -8,8 +8,9 @@ class LoadingWidget(QLabel):
super(LoadingWidget, self).__init__(parent=parent)
self.setObjectName(type(self).__name__)
self.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
self.movie = QMovie(":/images/loader.gif", parent=self)
self.setFixedSize(128, 128)
self.movie = QMovie(":/images/loader.webp", parent=self)
# The animation's exact size is 94x94
self.setFixedSize(96, 96)
self.setMovie(self.movie)
if self.parent() is not None:
self.parent().installEventFilter(self)