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; }");
|
statusBar()->setStyleSheet("QStatusBar::item {border: None; } QStatusBar QLabel { margin-right: 2px; margin-bottom: 1px; }");
|
||||||
this->centralWidget()->setStyleSheet("background-color: black;");
|
this->centralWidget()->setStyleSheet("background-color: black;");
|
||||||
ui->toolBar->setVisible(!hide_tool_bar);
|
ui->toolBar->setVisible(!hide_tool_bar);
|
||||||
|
#ifdef _WIN32
|
||||||
|
ui->toolBar->setBackgroundRole(QPalette::Light);
|
||||||
|
#endif
|
||||||
renderers[0].reset(nullptr);
|
renderers[0].reset(nullptr);
|
||||||
auto toolbar_spacer = new QWidget();
|
auto toolbar_spacer = new QWidget();
|
||||||
toolbar_spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
toolbar_spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
|
@@ -218,6 +218,9 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string notr="true">toolBar</string>
|
<string notr="true">toolBar</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="movable">
|
<property name="movable">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
Reference in New Issue
Block a user