Browse Source

Startup animated SD logo

pull/169/head
Duke Leto 4 years ago
parent
commit
396c4fe8c0
  1. 1
      application.qrc
  2. BIN
      res/silentdragon-animated.gif
  3. 6
      src/connection.cpp
  4. 2
      src/connection.ui
  5. 2
      src/rpc.cpp
  6. 2
      src/sendtab.cpp

1
application.qrc

@ -11,6 +11,7 @@
<qresource prefix="/img">
<file>res/zcashdlogo.gif</file>
<file>res/logobig.gif</file>
<file>res/silentdragon-animated.gif</file>
</qresource>
<qresource prefix="/translations">
<file>res/silentdragon_bg.qm</file>

BIN
res/silentdragon-animated.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 MiB

6
src/connection.cpp

@ -19,8 +19,10 @@ ConnectionLoader::ConnectionLoader(MainWindow* main, RPC* rpc) {
d->setWindowFlags(d->windowFlags() & ~(Qt::WindowCloseButtonHint | Qt::WindowContextHelpButtonHint));
connD = new Ui_ConnectionDialog();
connD->setupUi(d);
QPixmap logo(":/img/res/logobig.gif");
connD->topIcon->setBasePixmap(logo.scaled(512, 512, Qt::KeepAspectRatio, Qt::SmoothTransformation));
QMovie *movie = new QMovie(":/img/res/silentdragon-animated.gif");
//QPixmap logo(":/img/res/silentdragon-animated.gif");
connD->topIcon->setMovie(movie);
movie->start();
//main->logger->write("set topIcon");
}

2
src/connection.ui

@ -33,7 +33,7 @@
<number>0</number>
</property>
<item>
<widget class="FilledIconLabel" name="topIcon">
<widget class="QLabel" name="topIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>

2
src/rpc.cpp

@ -1217,7 +1217,7 @@ void RPC::shutdownZcashd() {
d.setWindowFlags(d.windowFlags() & ~(Qt::WindowCloseButtonHint | Qt::WindowContextHelpButtonHint));
Ui_ConnectionDialog connD;
connD.setupUi(&d);
connD.topIcon->setBasePixmap(QIcon(":/icons/res/icon.ico").pixmap(256, 256));
//connD.topIcon->setBasePixmap(QIcon(":/icons/res/icon.ico").pixmap(256, 256));
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"));

2
src/sendtab.cpp

@ -712,7 +712,7 @@ void MainWindow::sendButton() {
auto connD = new Ui_ConnectionDialog();
connD->setupUi(d);
QPixmap logo(":/img/res/logobig.gif");
connD->topIcon->setBasePixmap(logo.scaled(256, 256, Qt::KeepAspectRatio, Qt::SmoothTransformation));
//connD->topIcon->setBasePixmap(logo.scaled(256, 256, Qt::KeepAspectRatio, Qt::SmoothTransformation));
connD->status->setText(tr("Please wait..."));
connD->statusDetail->setText(tr("Computing your transaction"));

Loading…
Cancel
Save