merge in the sdl gifs from @csharpee, add check bob to render only verified messages
This commit is contained in:
@@ -277,8 +277,18 @@ void MainWindow::sendChatButton() {
|
||||
auto d = new QDialog(this);
|
||||
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));
|
||||
QMovie *movie1 = new QMovie(":/img/res/silentdragonlite-animated.gif");;
|
||||
QMovie *movie2 = new QMovie(":/img/res/silentdragonlite-animated-dark.gif");;
|
||||
auto theme = Settings::getInstance()->get_theme_name();
|
||||
if (theme == "dark" || theme == "midnight") {
|
||||
movie2->setScaledSize(QSize(512,512));
|
||||
connD->topIcon->setMovie(movie2);
|
||||
movie2->start();
|
||||
} else {
|
||||
movie1->setScaledSize(QSize(512,512));
|
||||
connD->topIcon->setMovie(movie1);
|
||||
movie1->start();
|
||||
}
|
||||
|
||||
connD->status->setText(tr("Please wait..."));
|
||||
connD->statusDetail->setText(tr("Your Message will be send"));
|
||||
|
||||
Reference in New Issue
Block a user