Browse Source
fixed theme animation startup bug on switch from dark to light
pull/174/head
Charles
4 years ago
No known key found for this signature in database
GPG Key ID: 251655CC546D9787
3 changed files with
4 additions and
3 deletions
-
src/connection.cpp
-
src/rpc.cpp
-
src/sendtab.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(); |
|
|
|
|
|
@ -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(); |
|
|
|
|
|
@ -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(); |
|
|
|