Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions contrib/devtools/optimize-pngs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def content_hash(filename):
folders = [
"src/qt/res/movies",
"src/qt/res/icons",
"src/qt/res/icons/light",
"src/qt/res/images",
"src/qt/res/images/light",
"share/pixmaps"
]
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel'], universal_newlines=True).rstrip('\n')
Expand Down
Binary file modified share/pixmaps/dash128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified share/pixmaps/dash16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified share/pixmaps/dash32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified share/pixmaps/dash64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ RES_ICONS = \
qt/res/icons/connect2_16.png \
qt/res/icons/connect3_16.png \
qt/res/icons/connect4_16.png \
qt/res/icons/console_remove.png \
qt/res/icons/debugwindow.png \
qt/res/icons/edit.png \
qt/res/icons/editcopy.png \
Expand All @@ -213,12 +214,9 @@ RES_ICONS = \
qt/res/icons/filesave.png \
qt/res/icons/hd_disabled.png \
qt/res/icons/hd_enabled.png \
qt/res/icons/history.png \
qt/res/icons/key.png \
qt/res/icons/lock_closed.png \
qt/res/icons/lock_open.png \
qt/res/icons/masternodes.png \
qt/res/icons/overview.png \
qt/res/icons/quit.png \
qt/res/icons/receive.png \
qt/res/icons/remove.png \
Expand All @@ -231,7 +229,6 @@ RES_ICONS = \
qt/res/icons/tx_input.png \
qt/res/icons/tx_output.png \
qt/res/icons/tx_mined.png \
qt/res/icons/about.png \
qt/res/icons/about_qt.png \
qt/res/icons/verify.png \
qt/res/icons/fontbigger.png \
Expand Down Expand Up @@ -305,14 +302,14 @@ BITCOIN_QT_CPP += $(BITCOIN_QT_WALLET_CPP)
endif

RES_IMAGES = \
qt/res/images/about.png \
qt/res/images/arrow_down.png \
qt/res/images/arrow_down_small.png \
qt/res/images/arrow_left_small.png \
qt/res/images/arrow_right_small.png \
qt/res/images/arrow_up_small.png \
qt/res/images/checked.png \
qt/res/images/dash_logo_horizontal.png \
qt/res/images/dash_logo_toolbar.png \
qt/res/images/qtreeview_selected.png \
qt/res/images/splash.png \
qt/res/images/unchecked.png \
Expand Down
20 changes: 15 additions & 5 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void BitcoinGUI::createActions()
{
QActionGroup *tabGroup = new QActionGroup(this);

overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);
overviewAction = new QAction(tr("&Overview"), this);
overviewAction->setStatusTip(tr("Show general overview of wallet"));
overviewAction->setToolTip(overviewAction->statusTip());
overviewAction->setCheckable(true);
Expand All @@ -310,7 +310,7 @@ void BitcoinGUI::createActions()
#endif
tabGroup->addAction(overviewAction);

sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);
sendCoinsAction = new QAction(tr("&Send"), this);
sendCoinsAction->setStatusTip(tr("Send coins to a Dash address"));
sendCoinsAction->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true);
Expand All @@ -325,7 +325,7 @@ void BitcoinGUI::createActions()
sendCoinsMenuAction->setStatusTip(sendCoinsAction->statusTip());
sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip());

receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this);
receiveCoinsAction = new QAction(tr("&Receive"), this);
receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and dash: URIs)"));
receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip());
receiveCoinsAction->setCheckable(true);
Expand All @@ -340,7 +340,7 @@ void BitcoinGUI::createActions()
receiveCoinsMenuAction->setStatusTip(receiveCoinsAction->statusTip());
receiveCoinsMenuAction->setToolTip(receiveCoinsMenuAction->statusTip());

historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);
historyAction = new QAction(tr("&Transactions"), this);
historyAction->setStatusTip(tr("Browse transaction history"));
historyAction->setToolTip(historyAction->statusTip());
historyAction->setCheckable(true);
Expand All @@ -354,7 +354,7 @@ void BitcoinGUI::createActions()
#ifdef ENABLE_WALLET
QSettings settings;
if (!fLiteMode && settings.value("fShowMasternodesTab").toBool()) {
masternodeAction = new QAction(QIcon(":/icons/masternodes"), tr("&Masternodes"), this);
masternodeAction = new QAction(tr("&Masternodes"), this);
masternodeAction->setStatusTip(tr("Browse masternodes"));
masternodeAction->setToolTip(masternodeAction->statusTip());
masternodeAction->setCheckable(true);
Expand Down Expand Up @@ -578,6 +578,16 @@ void BitcoinGUI::createToolBars()
toolbar->setMovable(false); // remove unused icon in upper left corner
overviewAction->setChecked(true);

// Add Dash logo on the right side
QWidget* spacer = new QWidget();
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
toolbar->addWidget(spacer);

QLabel *logoLabel = new QLabel();
QPixmap logoPixmap(":/images/dash_logo_toolbar");
logoLabel->setPixmap(logoPixmap);
toolbar->addWidget(logoLabel);

/** Create additional container for toolbar and walletFrame and make it the central widget.
This is a workaround mostly for toolbar styling on Mac OS but should work fine for every other OSes too.
*/
Expand Down
7 changes: 2 additions & 5 deletions src/qt/dash.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<file alias="transaction_3">res/icons/clock3.png</file>
<file alias="transaction_4">res/icons/clock4.png</file>
<file alias="transaction_5">res/icons/clock5.png</file>
<file alias="console_remove">res/icons/console_remove.png</file>
<file alias="eye">res/icons/eye.png</file>
<file alias="eye_minus">res/icons/eye_minus.png</file>
<file alias="eye_plus">res/icons/eye_plus.png</file>
Expand All @@ -30,9 +31,6 @@
<file alias="editcopy">res/icons/editcopy.png</file>
<file alias="add">res/icons/add.png</file>
<file alias="edit">res/icons/edit.png</file>
<file alias="history">res/icons/history.png</file>
<file alias="masternodes">res/icons/masternodes.png</file>
<file alias="overview">res/icons/overview.png</file>
<file alias="export">res/icons/export.png</file>
<file alias="synced">res/icons/synced.png</file>
<file alias="remove">res/icons/remove.png</file>
Expand All @@ -46,7 +44,6 @@
<file alias="filesave">res/icons/filesave.png</file>
<file alias="debugwindow">res/icons/debugwindow.png</file>
<file alias="browse">res/icons/browse.png</file>
<file alias="about">res/icons/about.png</file>
<file alias="about_qt">res/icons/about_qt.png</file>
<file alias="verify">res/icons/verify.png</file>
<file alias="hd_enabled">res/icons/hd_enabled.png</file>
Expand All @@ -62,14 +59,14 @@
<file alias="trad">res/css/trad.css</file>
</qresource>
<qresource prefix="/images">
<file alias="about">res/images/about.png</file>
<file alias="arrow_down">res/images/arrow_down.png</file>
<file alias="arrow_down_small">res/images/arrow_down_small.png</file>
<file alias="arrow_left_small">res/images/arrow_left_small.png</file>
<file alias="arrow_right_small">res/images/arrow_right_small.png</file>
<file alias="arrow_up_small">res/images/arrow_up_small.png</file>
<file alias="checked">res/images/checked.png</file>
<file alias="dash_logo_horizontal">res/images/dash_logo_horizontal.png</file>
<file alias="dash_logo_toolbar">res/images/dash_logo_toolbar.png</file>
<file alias="qtreeview_selected">res/images/qtreeview_selected.png</file>
<file alias="splash">res/images/splash.png</file>
<file alias="unchecked">res/images/unchecked.png</file>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/debugwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
</property>
<property name="icon">
<iconset resource="../bitcoin.qrc">
<normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
<normaloff>:/icons/console_remove</normaloff>:/icons/console_remove</iconset>
</property>
<property name="shortcut">
<string notr="true">Ctrl+L</string>
Expand Down
40 changes: 0 additions & 40 deletions src/qt/forms/helpmessagedialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -43,46 +43,6 @@
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="aboutLogo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>96</width>
<height>464</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>96</width>
<height>564</height>
</size>
</property>
<property name="baseSize">
<size>
<width>96</width>
<height>564</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="pixmap">
<pixmap resource="../dash.qrc">:/images/about</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down
55 changes: 0 additions & 55 deletions src/qt/forms/overviewpage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -579,61 +579,6 @@
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_debugbuttons">
<item>
<widget class="QPushButton" name="privateSendAuto">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Try to manually submit a PrivateSend request.</string>
</property>
<property name="text">
<string>Try Mix</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="privateSendReset">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Reset the current status of PrivateSend (can interrupt PrivateSend if it's in the process of Mixing, which can cost you money!)</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="privateSendInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Information about PrivateSend and Mixing</string>
</property>
<property name="text">
<string>Info</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
Expand Down
28 changes: 0 additions & 28 deletions src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,9 @@ void OverviewPage::setWalletModel(WalletModel *model)
connect(model->getOptionsModel(), SIGNAL(privateSentAmountChanged()), this, SLOT(updatePrivateSendProgress()));
connect(model->getOptionsModel(), SIGNAL(advancedPSUIChanged(bool)), this, SLOT(updateAdvancedPSUI(bool)));

connect(ui->privateSendAuto, SIGNAL(clicked()), this, SLOT(privateSendAuto()));
connect(ui->privateSendReset, SIGNAL(clicked()), this, SLOT(privateSendReset()));
connect(ui->privateSendInfo, SIGNAL(clicked()), this, SLOT(privateSendInfo()));
connect(ui->togglePrivateSend, SIGNAL(clicked()), this, SLOT(togglePrivateSend()));

// privatesend buttons will not react to spacebar must be clicked on
ui->privateSendAuto->setFocusPolicy(Qt::NoFocus);
ui->privateSendReset->setFocusPolicy(Qt::NoFocus);
ui->privateSendInfo->setFocusPolicy(Qt::NoFocus);
ui->togglePrivateSend->setFocusPolicy(Qt::NoFocus);
}
}
Expand Down Expand Up @@ -455,9 +449,6 @@ void OverviewPage::updateAdvancedPSUI(bool fShowAdvancedPSUI) {
ui->privateSendProgress->setVisible(fShowAdvancedPSUI);
ui->labelSubmittedDenomText->setVisible(fShowAdvancedPSUI);
ui->labelSubmittedDenom->setVisible(fShowAdvancedPSUI);
ui->privateSendAuto->setVisible(fShowAdvancedPSUI);
ui->privateSendReset->setVisible(fShowAdvancedPSUI);
ui->privateSendInfo->setVisible(true);
ui->labelPrivateSendLastMessage->setVisible(fShowAdvancedPSUI);
}

Expand Down Expand Up @@ -575,23 +566,6 @@ void OverviewPage::privateSendStatus()
ui->labelSubmittedDenom->setText(QString(privateSendClient.GetSessionDenoms().c_str()));
}

void OverviewPage::privateSendAuto(){
privateSendClient.DoAutomaticDenominating(*g_connman);
}

void OverviewPage::privateSendReset(){
privateSendClient.ResetPool();

QMessageBox::warning(this, tr("PrivateSend"),
tr("PrivateSend was successfully reset."),
QMessageBox::Ok, QMessageBox::Ok);
}

void OverviewPage::privateSendInfo(){
HelpMessageDialog dlg(this, HelpMessageDialog::pshelp);
dlg.exec();
}

void OverviewPage::togglePrivateSend(){
QSettings settings;
// Popup some information on first mixing
Expand Down Expand Up @@ -661,8 +635,6 @@ void OverviewPage::SetupTransactionList(int nNumItems) {

void OverviewPage::DisablePrivateSendCompletely() {
ui->togglePrivateSend->setText("(" + tr("Disabled") + ")");
ui->privateSendAuto->setText("(" + tr("Disabled") + ")");
ui->privateSendReset->setText("(" + tr("Disabled") + ")");
ui->framePrivateSend->setEnabled(false);
if (nWalletBackups <= 0) {
ui->labelPrivateSendEnabled->setText("<span style='color:red;'>(" + tr("Disabled") + ")</span>");
Expand Down
3 changes: 0 additions & 3 deletions src/qt/overviewpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ public Q_SLOTS:

private Q_SLOTS:
void togglePrivateSend();
void privateSendAuto();
void privateSendReset();
void privateSendInfo();
void updateDisplayUnit();
void updatePrivateSendProgress();
void updateAdvancedPSUI(bool fShowAdvancedPSUI);
Expand Down
Loading