Initial commit

This commit is contained in:
crowning2 2015-02-16 22:12:13 +01:00
parent 52d58c26c9
commit b7db590168
2 changed files with 11 additions and 2 deletions

View File

@ -42,6 +42,9 @@
<file alias="qrcode">res/icons/qrcode.png</file>
<file alias="debugwindow">res/icons/debugwindow.png</file>
</qresource>
<qresource prefix="/css">
<file alias="drkblue">res/css/drkblue.css</file>
</qresource>
<qresource prefix="/images">
<file alias="about">res/images/about.png</file>
<file alias="splash">res/images/splash.png</file>
@ -86,7 +89,6 @@
</qresource>
<qresource prefix="/translations">
<file alias="bar">locale/darkcoin_bar.qm</file>
<file alias="bg">locale/darkcoin_bg.qm</file>
<file alias="ca">locale/darkcoin_ca.qm</file>
<file alias="cmn">locale/darkcoin_cmn.qm</file>
<file alias="cs">locale/darkcoin_cs.qm</file>
@ -101,7 +103,6 @@
<file alias="hu_HU">locale/darkcoin_hu_HU.qm</file>
<file alias="it">locale/darkcoin_it.qm</file>
<file alias="lv_LV">locale/darkcoin_lv_LV.qm</file>
<file alias="nb">locale/darkcoin_nb.qm</file>
<file alias="nl">locale/darkcoin_nl.qm</file>
<file alias="pl">locale/darkcoin_pl.qm</file>
<file alias="pt">locale/darkcoin_pt.qm</file>

8
src/qt/bitcoingui.cpp Normal file → Executable file
View File

@ -48,6 +48,7 @@
#include <QTimer>
#include <QToolBar>
#include <QVBoxLayout>
#include <QtCore/QFile>
#if QT_VERSION < 0x050000
#include <QUrl>
@ -71,6 +72,13 @@ BitcoinGUI::BitcoinGUI(bool fIsTestnet, QWidget *parent) :
prevBlocks(0),
spinnerFrame(0)
{
/* Open default CSS */
QFile qFile(":/css/drkblue");
if (qFile.open(QFile::ReadOnly)) {
QString styleSheet = QLatin1String(qFile.readAll());
this->setStyleSheet(styleSheet);
}
GUIUtil::restoreWindowGeometry("nWindow", QSize(850, 550), this);
QString windowTitle = tr("Darkcoin Core") + " - ";