Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
f16e8b0
qt: Replaced QAction with QToolButton for BitcoinGUI toolbar buttons.
xdustinface May 26, 2020
7224de8
qt: Give the BitcoinGUI's toolbar more style
xdustinface May 26, 2020
7dee671
qt: Give the toolbar logo a higher resolution
xdustinface May 26, 2020
9235332
qt: Restore the traditional themes toolbar previous styles and logo
xdustinface Jun 27, 2020
daf60f2
qt: Add Montserrat (picked in Dash Style Guide) as application font
xdustinface May 29, 2020
46506d0
qt: Use default montserrat instead of fixed pitch font in dash themes
xdustinface Jun 6, 2020
cc461b9
qt: Removed all font related changes from .ui files
xdustinface Jun 4, 2020
7a7b9d5
qt: Removed all font-weight changes from general.css
xdustinface Jun 4, 2020
2caafe1
qt: Use default font in receive requests and transaction description
xdustinface Jun 11, 2020
fcec57b
qt: Set a proper font weight with GUIUtil::setFont where requried
xdustinface Jun 4, 2020
618f300
qt: Use correct default font for size calculations
xdustinface Jun 12, 2020
d6db73a
qt: Load custom font in splashscreen
xdustinface Jun 4, 2020
b2eccfe
qt: Add -font-weight-normal, -font-weight-bold and -font-scale arguments
xdustinface Jun 15, 2020
3d2fed7
qt: Disable macOS system focus rectangles for dash themes
xdustinface Jun 4, 2020
2c348a2
qt: Change themes path from ":themes" to ":css" in qrc file
xdustinface Jun 8, 2020
0bce680
qt: Renamed trad.css to traditional.css
xdustinface Jun 8, 2020
28ae550
qt: Add -custom-css-dir startup parameter
xdustinface Jun 8, 2020
e6e3290
qt: Keep track of disabled rects for macOS
xdustinface Jun 8, 2020
f882929
qt: Keep track of font updates
xdustinface Jun 8, 2020
c7accf6
qt: Add UI debug mode (-debug-ui)
xdustinface Jun 8, 2020
cc06200
qt: Set parents properly to inherit css and remove redundant loading
xdustinface Jun 8, 2020
022910c
qt: Add stylesheets to Intro (first run dialog)
xdustinface Jun 23, 2020
cec544a
qt: Adding Qt::Window flag to the constructor of RPCConsole
xdustinface Jun 8, 2020
31594dd
qt: Set the default theme properly
xdustinface Jun 8, 2020
5eaf6a3
qt: Runtime theme changes and improved debug-ui
xdustinface Jun 8, 2020
e9d63f0
qt: Fix some issues with runtime theme changes
xdustinface Jun 10, 2020
c7994b7
qt: OptionsDialog - Replaced QTabBar with QStackedWidget
xdustinface Jun 10, 2020
1125d7b
qt: RPCConsole - Replaced QTabBar with QStackedWidget
xdustinface Jun 10, 2020
f05be46
qt: SignVerifyMessageDialog - Replaced QTabBar with QStackedWidget
xdustinface Jun 10, 2020
fba4e68
qt: Add styles for tabbar replacement buttons
xdustinface Jun 10, 2020
d8df33b
qt: Update theme colors in GUIUtil
xdustinface Jun 10, 2020
ca9bcbd
qt: Give links a more eye friendly blue
xdustinface Jun 10, 2020
76e4a81
qt: Use themed colors in net traffic graph
xdustinface Jun 10, 2020
57079e2
qt: Use themed styles/color in overview page
xdustinface Jun 10, 2020
1766353
qt: Use themed stylesheets in Intro
xdustinface Jun 23, 2020
e38b797
qt: Modified QR code image painting to match the theme colors
xdustinface Jun 11, 2020
67c0275
qt: Draw a border around net traffic graph
xdustinface Jun 10, 2020
ff28f98
qt: Give the TransactionView's instantsendWidget a name
xdustinface Jun 5, 2020
fceec29
qt: Rename conflicting label in SendCoinsDialog
xdustinface Jun 9, 2020
6ec3de5
qt: Give the TransactionView's search field the first focus on startup
xdustinface Jun 9, 2020
8e1287c
qt: Some updates to the PrivateSend widget on the OverviewPage
xdustinface Jun 9, 2020
be08f50
qt: Fix some layout issues in SendCoinsDialog's UI file.
xdustinface Jun 16, 2020
bbbc12e
qt: Fix vertical alignment of the two balance labels in SendCoinsDialog
xdustinface Jun 22, 2020
cec706d
qt: Add newline in textedit of receiverequest
xdustinface Jun 11, 2020
e2be853
qt: OptionsDialog - Hide override hint if there is nothing overridden
xdustinface Jun 23, 2020
d03a1ad
qt: User border-image in place of image
xdustinface Jun 8, 2020
e0e7ce3
qt: Fix layout issues in TransactionView
xdustinface Jun 8, 2020
04c69c2
qt: Fix layout issues in OverviewPage
xdustinface Jun 8, 2020
0804f0b
qt: Replace transparent with #00000000 in stylesheets
xdustinface Jun 9, 2020
568d1b9
qt: Use #a84832 as red where possible.
xdustinface Jun 9, 2020
8854bcd
qt: Finetune QPushButton style
xdustinface Jun 9, 2020
8cf080e
qt: Customized QSlider (used in the Debug window -> NetworkTraffic)
xdustinface Jun 9, 2020
6cbc74f
qt: Finetune QToolbar style
xdustinface Jun 9, 2020
17376e9
qt: Customized QProgressBar
xdustinface Jun 9, 2020
575e4fa
qt: Customized QCalendarWidget
xdustinface Jun 23, 2020
20e047b
qt: Update weekend colors of QCalendarWidget on style changes
xdustinface Jun 23, 2020
4a80c75
qt: Finetune QStatusBar style
xdustinface Jun 9, 2020
77cb530
qt: Finetune QMenu style
xdustinface Jun 12, 2020
471a589
qt: Customized QGroupBox
xdustinface Jun 10, 2020
431b074
qt: Customized QToolTip
xdustinface Jun 17, 2020
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
26 changes: 23 additions & 3 deletions src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,27 @@ RES_CSS = \
qt/res/css/general.css \
qt/res/css/light.css \
qt/res/css/scrollbars.css \
qt/res/css/trad.css
qt/res/css/traditional.css

RES_FONTS = \
qt/res/fonts/Montserrat/Montserrat-Black.otf \
qt/res/fonts/Montserrat/Montserrat-BlackItalic.otf \
qt/res/fonts/Montserrat/Montserrat-Bold.otf \
qt/res/fonts/Montserrat/Montserrat-BoldItalic.otf \
qt/res/fonts/Montserrat/Montserrat-ExtraBold.otf \
qt/res/fonts/Montserrat/Montserrat-ExtraBoldItalic.otf \
qt/res/fonts/Montserrat/Montserrat-ExtraLight.otf \
qt/res/fonts/Montserrat/Montserrat-ExtraLightItalic.otf \
qt/res/fonts/Montserrat/Montserrat-Italic.otf \
qt/res/fonts/Montserrat/Montserrat-Light.otf \
qt/res/fonts/Montserrat/Montserrat-LightItalic.otf \
qt/res/fonts/Montserrat/Montserrat-Medium.otf \
qt/res/fonts/Montserrat/Montserrat-MediumItalic.otf \
qt/res/fonts/Montserrat/Montserrat-Regular.otf \
qt/res/fonts/Montserrat/Montserrat-SemiBold.otf \
qt/res/fonts/Montserrat/Montserrat-SemiBoldItalic.otf \
qt/res/fonts/Montserrat/Montserrat-Thin.otf \
qt/res/fonts/Montserrat/Montserrat-ThinItalic.otf

RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)

Expand All @@ -367,7 +387,7 @@ qt_libdashqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
qt_libdashqt_a_OBJCXXFLAGS = $(AM_OBJCXXFLAGS) $(QT_PIE_FLAGS)

qt_libdashqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_MOVIES)
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_MOVIES)

nodist_qt_libdashqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
$(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
Expand Down Expand Up @@ -430,7 +450,7 @@ $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
@rm $(@D)/temp_$(<F)

$(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_MOVIES) $(PROTOBUF_H)
$(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_CSS) $(RES_FONTS) $(RES_MOVIES) $(PROTOBUF_H)
@test -f $(RCC)
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) $(RCCFLAGS) -name dash $< | \
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
Expand Down
5 changes: 5 additions & 0 deletions src/qt/askpassphrasedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <qt/forms/ui_askpassphrasedialog.h>

#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <qt/walletmodel.h>

#include <support/allocators/secure.h>
Expand All @@ -28,6 +29,10 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent) :
{
ui->setupUi(this);

GUIUtil::setFont({ui->capsLabel}, GUIUtil::getFontWeightBold());

GUIUtil::disableMacFocusRect(this);

ui->passEdit1->setMinimumSize(ui->passEdit1->sizeHint());
ui->passEdit2->setMinimumSize(ui->passEdit2->sizeHint());
ui->passEdit3->setMinimumSize(ui->passEdit3->sizeHint());
Expand Down
117 changes: 67 additions & 50 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include <QAction>
#include <QApplication>
#include <QButtonGroup>
#include <QDateTime>
#include <QDesktopWidget>
#include <QDragEnterEvent>
Expand All @@ -55,6 +56,7 @@
#include <QStyle>
#include <QTimer>
#include <QToolBar>
#include <QToolButton>
#include <QUrlQuery>
#include <QVBoxLayout>

Expand Down Expand Up @@ -118,13 +120,11 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
rpcConsole(0),
helpMessageDialog(0),
modalOverlay(0),
tabGroup(0),
prevBlocks(0),
spinnerFrame(0),
platformStyle(_platformStyle)
{
/* Open CSS when configured */
this->setStyleSheet(GUIUtil::loadStyleSheet());

QSettings settings;
if (!restoreGeometry(settings.value("MainWindowGeometry").toByteArray())) {
// Restore failed (perhaps missing setting), center the window
Expand All @@ -148,7 +148,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
setWindowIcon(networkStyle->getTrayAndWindowIcon());
setWindowTitle(windowTitle);

rpcConsole = new RPCConsole(_platformStyle, 0);
rpcConsole = new RPCConsole(_platformStyle, this);
helpMessageDialog = new HelpMessageDialog(this, HelpMessageDialog::cmdline);
#ifdef ENABLE_WALLET
if(enableWallet)
Expand Down Expand Up @@ -216,6 +216,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(true);
progressBarLabel->setObjectName("lblStatusBarProgress");
progressBar = new GUIUtil::ProgressBar();
progressBar->setAlignment(Qt::AlignCenter);
progressBar->setVisible(true);
Expand Down Expand Up @@ -279,13 +280,15 @@ BitcoinGUI::~BitcoinGUI()
#endif

delete rpcConsole;
delete tabGroup;
}

void BitcoinGUI::createActions()
{
QActionGroup *tabGroup = new QActionGroup(this);
tabGroup = new QButtonGroup(this);

overviewAction = new QAction(tr("&Overview"), this);
overviewAction = new QToolButton(this);
overviewAction->setText(tr("&Overview"));
overviewAction->setStatusTip(tr("Show general overview of wallet"));
overviewAction->setToolTip(overviewAction->statusTip());
overviewAction->setCheckable(true);
Expand All @@ -294,9 +297,10 @@ void BitcoinGUI::createActions()
#else
overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));
#endif
tabGroup->addAction(overviewAction);
tabGroup->addButton(overviewAction);

sendCoinsAction = new QAction(tr("&Send"), this);
sendCoinsAction = new QToolButton(this);
sendCoinsAction->setText(tr("&Send"));
sendCoinsAction->setStatusTip(tr("Send coins to a Dash address"));
sendCoinsAction->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true);
Expand All @@ -305,13 +309,14 @@ void BitcoinGUI::createActions()
#else
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
#endif
tabGroup->addAction(sendCoinsAction);
tabGroup->addButton(sendCoinsAction);

sendCoinsMenuAction = new QAction(QIcon(":/icons/send"), sendCoinsAction->text(), this);
sendCoinsMenuAction->setStatusTip(sendCoinsAction->statusTip());
sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip());

privateSendCoinsAction = new QAction(tr("&PrivateSend"), this);
privateSendCoinsAction = new QToolButton(this);
privateSendCoinsAction->setText(tr("&PrivateSend"));
privateSendCoinsAction->setStatusTip(tr("PrivateSend coins to a Dash address"));
privateSendCoinsAction->setToolTip(privateSendCoinsAction->statusTip());
privateSendCoinsAction->setCheckable(true);
Expand All @@ -320,13 +325,14 @@ void BitcoinGUI::createActions()
#else
privateSendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));
#endif
tabGroup->addAction(privateSendCoinsAction);
tabGroup->addButton(privateSendCoinsAction);

privateSendCoinsMenuAction = new QAction(QIcon(":/icons/send"), privateSendCoinsAction->text(), this);
privateSendCoinsMenuAction->setStatusTip(privateSendCoinsAction->statusTip());
privateSendCoinsMenuAction->setToolTip(privateSendCoinsMenuAction->statusTip());

receiveCoinsAction = new QAction(tr("&Receive"), this);
receiveCoinsAction = new QToolButton(this);
receiveCoinsAction->setText(tr("&Receive"));
receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and dash: URIs)"));
receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip());
receiveCoinsAction->setCheckable(true);
Expand All @@ -335,13 +341,14 @@ void BitcoinGUI::createActions()
#else
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
#endif
tabGroup->addAction(receiveCoinsAction);
tabGroup->addButton(receiveCoinsAction);

receiveCoinsMenuAction = new QAction(QIcon(":/icons/receiving_addresses"), receiveCoinsAction->text(), this);
receiveCoinsMenuAction->setStatusTip(receiveCoinsAction->statusTip());
receiveCoinsMenuAction->setToolTip(receiveCoinsMenuAction->statusTip());

historyAction = new QAction(tr("&Transactions"), this);
historyAction = new QToolButton(this);
historyAction->setText(tr("&Transactions"));
historyAction->setStatusTip(tr("Browse transaction history"));
historyAction->setToolTip(historyAction->statusTip());
historyAction->setCheckable(true);
Expand All @@ -350,12 +357,13 @@ void BitcoinGUI::createActions()
#else
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
#endif
tabGroup->addAction(historyAction);
tabGroup->addButton(historyAction);

#ifdef ENABLE_WALLET
QSettings settings;
if (settings.value("fShowMasternodesTab").toBool()) {
masternodeAction = new QAction(tr("&Masternodes"), this);
masternodeAction = new QToolButton(this);
masternodeAction->setText(tr("&Masternodes"));
masternodeAction->setStatusTip(tr("Browse masternodes"));
masternodeAction->setToolTip(masternodeAction->statusTip());
masternodeAction->setCheckable(true);
Expand All @@ -364,29 +372,32 @@ void BitcoinGUI::createActions()
#else
masternodeAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6));
#endif
tabGroup->addAction(masternodeAction);
connect(masternodeAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(masternodeAction, SIGNAL(triggered()), this, SLOT(gotoMasternodePage()));
tabGroup->addButton(masternodeAction);
connect(masternodeAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(masternodeAction, SIGNAL(clicked()), this, SLOT(gotoMasternodePage()));
}

// These showNormalIfMinimized are needed because Send Coins and Receive Coins
// can be triggered from the tray menu, and need to show the GUI to be useful.
connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
connect(overviewAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(overviewAction, SIGNAL(clicked()), this, SLOT(gotoOverviewPage()));
connect(sendCoinsAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(sendCoinsAction, SIGNAL(clicked()), this, SLOT(gotoSendCoinsPage()));
connect(sendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(sendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
connect(privateSendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(privateSendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoPrivateSendCoinsPage()));
connect(privateSendCoinsAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(privateSendCoinsAction, SIGNAL(clicked()), this, SLOT(gotoPrivateSendCoinsPage()));
connect(privateSendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(privateSendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(gotoPrivateSendCoinsPage()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(receiveCoinsAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(receiveCoinsAction, SIGNAL(clicked()), this, SLOT(gotoReceiveCoinsPage()));
connect(receiveCoinsMenuAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(receiveCoinsMenuAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
connect(historyAction, SIGNAL(clicked()), this, SLOT(showNormalIfMinimized()));
connect(historyAction, SIGNAL(clicked()), this, SLOT(gotoHistoryPage()));

// Give the selected tab button a bolder font.
connect(tabGroup, SIGNAL(buttonToggled(QAbstractButton *, bool)), this, SLOT(highlightTabButton(QAbstractButton *, bool)));
#endif // ENABLE_WALLET

quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);
Expand Down Expand Up @@ -575,32 +586,33 @@ void BitcoinGUI::createToolBars()
{
QToolBar *toolbar = new QToolBar(tr("Tabs toolbar"));
toolbar->setContextMenuPolicy(Qt::PreventContextMenu);
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(overviewAction);
toolbar->addAction(sendCoinsAction);
toolbar->addAction(privateSendCoinsAction);
toolbar->addAction(receiveCoinsAction);
toolbar->addAction(historyAction);
toolbar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
toolbar->setToolButtonStyle(Qt::ToolButtonTextOnly);

overviewAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sendCoinsAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
privateSendCoinsAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
receiveCoinsAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
historyAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);

toolbar->addWidget(overviewAction);
toolbar->addWidget(sendCoinsAction);
toolbar->addWidget(privateSendCoinsAction);
toolbar->addWidget(receiveCoinsAction);
toolbar->addWidget(historyAction);

QSettings settings;
if (settings.value("fShowMasternodesTab").toBool() && masternodeAction) {
toolbar->addAction(masternodeAction);
masternodeAction->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
toolbar->addWidget(masternodeAction);
}
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();
QString logoImage = ":/images/dash_logo_toolbar";
if (!GUIUtil::dashThemeActive()) {
logoImage = ":/images/dash_logo_toolbar_blue";
}
logoLabel->setObjectName("lblToolbarLogo");
logoLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);

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

/** Create additional container for toolbar and walletFrame and make it the central widget.
Expand Down Expand Up @@ -828,6 +840,7 @@ void BitcoinGUI::optionsClicked()

OptionsDialog dlg(this, enableWallet);
dlg.setModel(clientModel->getOptionsModel());
connect(&dlg, &OptionsDialog::themeChanged, [=](){GUIUtil::loadTheme();});
dlg.exec();
}

Expand Down Expand Up @@ -909,6 +922,11 @@ void BitcoinGUI::openClicked()
}
}

void BitcoinGUI::highlightTabButton(QAbstractButton *button, bool checked)
{
GUIUtil::setFont({button}, checked ? GUIUtil::getFontWeightBold() : GUIUtil::getFontWeightNormal());
}

void BitcoinGUI::gotoOverviewPage()
{
overviewAction->setChecked(true);
Expand Down Expand Up @@ -1508,8 +1526,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
{
if (nProgress == 0)
{
progressDialog = new QProgressDialog(title, "", 0, 100);
progressDialog->setStyleSheet(GUIUtil::loadStyleSheet());
progressDialog = new QProgressDialog(title, "", 0, 100, this);
progressDialog->setWindowModality(Qt::ApplicationModal);
progressDialog->setMinimumDuration(0);
progressDialog->setCancelButton(0);
Expand Down Expand Up @@ -1595,7 +1612,7 @@ UnitDisplayStatusBarControl::UnitDisplayStatusBarControl(const PlatformStyle *pl
setToolTip(tr("Unit to show amounts in. Click to select another unit."));
QList<BitcoinUnits::Unit> units = BitcoinUnits::availableUnits();
int max_width = 0;
const QFontMetrics fm(font());
const QFontMetrics fm(GUIUtil::getFontNormal());
for (const BitcoinUnits::Unit unit : units)
{
max_width = qMax(max_width, fm.width(BitcoinUnits::name(unit)));
Expand Down
Loading