Merge pull request #2850 from Cacodemon345/qt-toolbar-win32
qt: Match toolbar background with Win32 backend
This commit is contained in:
@@ -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);
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user