feat(splash): random silly loading GIF (wow-lite-wallet tradition)

The wallet-open splash now shows a random loader from a bundled set (13
curated GIFs from wownero/wow-lite-wallet, ~2.2MB) instead of the static
key icon — auto-discovered from :/silly, aspect-scaled to 56px, falls back
to the key pixmap if none present. Assets by a friend (same Wownero family).
This commit is contained in:
jwinterm
2026-08-30 10:56:37 -04:00
parent c65c12d328
commit 1c81365247
16 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ if (CHECK_UPDATES)
add_subdirectory(openpgp) add_subdirectory(openpgp)
endif() endif()
qt_add_resources(RESOURCES assets.qrc assets_tor.qrc assets_wownerod.qrc assets_docs.qrc mining.qrc) qt_add_resources(RESOURCES assets.qrc assets_tor.qrc assets_wownerod.qrc assets_docs.qrc mining.qrc silly.qrc)
# Compile source files (.h/.cpp) # Compile source files (.h/.cpp)
file(GLOB SOURCE_FILES file(GLOB SOURCE_FILES
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+23 -2
View File
@@ -4,6 +4,10 @@
#include "SplashDialog.h" #include "SplashDialog.h"
#include "ui_SplashDialog.h" #include "ui_SplashDialog.h"
#include <QDir>
#include <QMovie>
#include <QRandomGenerator>
#include "utils/Icons.h" #include "utils/Icons.h"
SplashDialog::SplashDialog(QWidget *parent) SplashDialog::SplashDialog(QWidget *parent)
@@ -14,8 +18,25 @@ SplashDialog::SplashDialog(QWidget *parent)
this->setWindowIcon(icons()->icon("appicon/64x64")); this->setWindowIcon(icons()->icon("appicon/64x64"));
QPixmap pixmap = QPixmap(":/assets/images/key.png"); // wowlet: a random silly loading GIF (wow-lite-wallet tradition) instead of
ui->icon->setPixmap(pixmap.scaledToWidth(32, Qt::SmoothTransformation)); // a static key icon. Auto-discovers whatever loaders are bundled under
// :/silly so the set can grow without touching this code; falls back to the
// key pixmap if none are present.
const QStringList loaders = QDir(":/silly").entryList(QStringList() << "*.gif", QDir::Files);
if (!loaders.isEmpty()) {
const QString pick = ":/silly/" + loaders.at(QRandomGenerator::global()->bounded(loaders.size()));
auto *movie = new QMovie(pick, QByteArray(), this);
movie->jumpToFrame(0);
const QSize frame = movie->currentImage().size();
const int h = 56;
if (frame.height() > 0)
movie->setScaledSize(QSize(frame.width() * h / frame.height(), h));
ui->icon->setMovie(movie);
movie->start();
} else {
QPixmap pixmap = QPixmap(":/assets/images/key.png");
ui->icon->setPixmap(pixmap.scaledToWidth(32, Qt::SmoothTransformation));
}
this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint); this->setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">
<file alias="silly/l11.gif">assets/images/silly/l11.gif</file>
<file alias="silly/l12.gif">assets/images/silly/l12.gif</file>
<file alias="silly/l19.gif">assets/images/silly/l19.gif</file>
<file alias="silly/l1.gif">assets/images/silly/l1.gif</file>
<file alias="silly/l21.gif">assets/images/silly/l21.gif</file>
<file alias="silly/l22.gif">assets/images/silly/l22.gif</file>
<file alias="silly/l26.gif">assets/images/silly/l26.gif</file>
<file alias="silly/l27.gif">assets/images/silly/l27.gif</file>
<file alias="silly/l3.gif">assets/images/silly/l3.gif</file>
<file alias="silly/l5.gif">assets/images/silly/l5.gif</file>
<file alias="silly/l6.gif">assets/images/silly/l6.gif</file>
<file alias="silly/l7.gif">assets/images/silly/l7.gif</file>
<file alias="silly/loading.gif">assets/images/silly/loading.gif</file>
</qresource>
</RCC>