Browse Source

Merge pull request #174 from csharpee/bugsbunny

Fixed Bug with Startup Animations + Added optimized animations
pull/175/head
Duke Leto 4 years ago
committed by GitHub
parent
commit
0dfb14ec87
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      res/silentdragon-animated-startup-dark.gif
  2. BIN
      res/silentdragon-animated-startup.gif
  3. 3
      src/connection.cpp
  4. 2
      src/rpc.cpp
  5. 2
      src/sendtab.cpp

BIN
res/silentdragon-animated-startup-dark.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
res/silentdragon-animated-startup.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

3
src/connection.cpp

@ -23,7 +23,8 @@ ConnectionLoader::ConnectionLoader(MainWindow* main, RPC* rpc) {
QMovie *movie2 = new QMovie(":/img/res/silentdragon-animated-startup-dark.gif");;
auto theme = Settings::getInstance()->get_theme_name();
auto size = QSize(512,512);
if (theme == "dark" || "midnight") {
if (theme == "dark" || theme == "midnight") {
movie2->setScaledSize(size);
connD->topIcon->setMovie(movie2);
movie2->start();

2
src/rpc.cpp

@ -1222,7 +1222,7 @@ void RPC::shutdownZcashd() {
QMovie *movie1 = new QMovie(":/img/res/silentdragon-animated.gif");;
QMovie *movie2 = new QMovie(":/img/res/silentdragon-animated-dark.gif");;
auto theme = Settings::getInstance()->get_theme_name();
if (theme == "dark" || "midnight") {
if (theme == "dark" || theme == "midnight") {
movie2->setScaledSize(QSize(512,512));
connD.topIcon->setMovie(movie2);
movie2->start();

2
src/sendtab.cpp

@ -715,7 +715,7 @@ void MainWindow::sendButton() {
QMovie *movie1 = new QMovie(":/img/res/silentdragon-animated.gif");;
QMovie *movie2 = new QMovie(":/img/res/silentdragon-animated-dark.gif");;
auto theme = Settings::getInstance()->get_theme_name();
if (theme == "dark" || "midnight") {
if (theme == "dark" || theme == "midnight") {
movie2->setScaledSize(QSize(512,512));
connD->topIcon->setMovie(movie2);
movie2->start();

Loading…
Cancel
Save