From 20f0fc3815d1ea1fcb7fb76258fc37ea814ff9bf Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 21 Apr 2020 12:25:14 -0400 Subject: [PATCH] Use animated logo for sending and shutting down, we can use custom graphics later on --- src/rpc.cpp | 4 ++++ src/sendtab.cpp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index f35869a..50e8d17 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -1218,6 +1218,10 @@ void RPC::shutdownZcashd() { Ui_ConnectionDialog connD; connD.setupUi(&d); //connD.topIcon->setBasePixmap(QIcon(":/icons/res/icon.ico").pixmap(256, 256)); + QMovie *movie = new QMovie(":/img/res/silentdragon-animated.gif"); + connD.topIcon->setMovie(movie); + movie->start(); + connD.status->setText(QObject::tr("Please enhance your calm and wait for SilentDragon to exit")); connD.statusDetail->setText(QObject::tr("Waiting for hushd to exit, y'all")); diff --git a/src/sendtab.cpp b/src/sendtab.cpp index f16aa3b..f5dd1aa 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -711,7 +711,11 @@ void MainWindow::sendButton() { auto d = new QDialog(this); auto connD = new Ui_ConnectionDialog(); connD->setupUi(d); - QPixmap logo(":/img/res/logobig.gif"); + QMovie *movie = new QMovie(":/img/res/silentdragon-animated.gif"); + connD->topIcon->setMovie(movie); + movie->start(); + + //connD->topIcon->setBasePixmap(logo.scaled(256, 256, Qt::KeepAspectRatio, Qt::SmoothTransformation)); connD->status->setText(tr("Please wait..."));