Skip to content

Commit

Permalink
dashpay#3248 use blue logo for Traditional theme
Browse files Browse the repository at this point in the history
  • Loading branch information
10xcryptodev committed Apr 19, 2020
1 parent de931a2 commit 5ff6acf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ RES_IMAGES = \
qt/res/images/arrow_right_small.png \
qt/res/images/arrow_up_small.png \
qt/res/images/checked.png \
qt/res/images/dash_logo_blue.png \
qt/res/images/dash_logo_horizontal.png \
qt/res/images/dash_logo_toolbar.png \
qt/res/images/qtreeview_selected.png \
Expand Down
10 changes: 8 additions & 2 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
#ifndef Q_OS_MAC
// Apply some styling to scrollbars
QString theme = settings.value("theme", "").toString();
if (theme != "trad") { // No scrollbar styling for the traditional theme
if (theme != "Traditional") { // No scrollbar styling for the traditional theme
QFile qFile(QString(":/css/scrollbars"));
QString styleSheet;
if (qFile.open(QFile::ReadOnly)) {
Expand Down Expand Up @@ -598,7 +598,13 @@ void BitcoinGUI::createToolBars()
toolbar->addWidget(spacer);

QLabel *logoLabel = new QLabel();
QPixmap logoPixmap(":/images/dash_logo_toolbar");
QString theme = settings.value("theme", "").toString();
QString logoImage = ":/images/dash_logo_toolbar";
if (theme == "Traditional") {
logoImage = ":/images/dash_logo_blue";
}

QPixmap logoPixmap(logoImage);
logoLabel->setPixmap(logoPixmap);
toolbar->addWidget(logoLabel);

Expand Down
1 change: 1 addition & 0 deletions src/qt/dash.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<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_blue">res/images/dash_logo_blue.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>
Expand Down
Binary file added src/qt/res/images/dash_logo_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5ff6acf

Please sign in to comment.