Browse Source

fixed theme animation startup bug on switch from dark to light

pull/174/head
Charles 4 years ago
parent
commit
8447902265
No known key found for this signature in database GPG Key ID: 251655CC546D9787
  1. 3
      src/connection.cpp
  2. 2
      src/rpc.cpp
  3. 2
      src/sendtab.cpp

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