From d827a3708c1788db9bcb70cbf79418cffabfce20 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 11 Nov 2022 21:58:42 +0600 Subject: [PATCH] qt: Match toolbar background with Win32 backend --- src/qt/qt_mainwindow.cpp | 3 +++ src/qt/qt_mainwindow.ui | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 9e81531ab..7b3e03f86 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -160,6 +160,9 @@ MainWindow::MainWindow(QWidget *parent) : statusBar()->setStyleSheet("QStatusBar::item {border: None; } QStatusBar QLabel { margin-right: 2px; margin-bottom: 1px; }"); this->centralWidget()->setStyleSheet("background-color: black;"); ui->toolBar->setVisible(!hide_tool_bar); +#ifdef _WIN32 + ui->toolBar->setBackgroundRole(QPalette::Light); +#endif renderers[0].reset(nullptr); auto toolbar_spacer = new QWidget(); toolbar_spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); diff --git a/src/qt/qt_mainwindow.ui b/src/qt/qt_mainwindow.ui index fcc337cb3..6a86b632e 100644 --- a/src/qt/qt_mainwindow.ui +++ b/src/qt/qt_mainwindow.ui @@ -218,6 +218,9 @@ toolBar + + true + false