qt: Match toolbar background with Win32 backend

This commit is contained in:
Cacodemon345
2022-11-11 21:58:42 +06:00
parent 51aa132818
commit d827a3708c
2 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -218,6 +218,9 @@
<property name="windowTitle">
<string notr="true">toolBar</string>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="movable">
<bool>false</bool>
</property>