Custom shibeface

You can now place a dogecoin.png in the config dir, and it will show up
on the overview page.
This commit is contained in:
Alan Westbrook 2014-03-19 01:29:04 -07:00
parent 68464d699b
commit b14d83aabd

View file

@ -8,6 +8,7 @@
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "util.h"
#include "guiconstants.h"
#include <QAbstractItemDelegate>
@ -116,6 +117,15 @@ OverviewPage::OverviewPage(QWidget *parent) :
ui->labelWalletStatus->setText("(" + tr("out of sync") + ")");
ui->labelTransactionsStatus->setText("(" + tr("out of sync") + ")");
// Customized branding image.
boost::filesystem::path dogepath = GetDataDir(false);
dogepath /= "dogecoin.png";
QPixmap shibecoin(dogepath.string().c_str());
if ( !shibecoin.isNull() ) {
ui->label_wallet_bgcoin->setPixmap(shibecoin);
}
// start with displaying the "out of sync" warnings
showOutOfSyncWarning(true);
}