QmlDesigner: Fix 2d/3d editor tool bar color macOS

Change-Id: Iab57fd51b962bcb174c4d004e4cfed1500bb4e74
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Henning Gruendl
2023-02-24 17:41:36 +01:00
committed by Henning Gründl
parent 26e2342e24
commit f61266b829

View File

@@ -20,27 +20,23 @@ ToolBox::ToolBox(QWidget *parentWidget)
{ {
setProperty("panelwidget", false); setProperty("panelwidget", false);
QPalette pal = palette();
pal.setColor(QPalette::Window, Theme::getColor(Theme::DStoolbarBackground));
setAutoFillBackground(true);
setPalette(pal);
m_leftToolBar->setFloatable(true); m_leftToolBar->setFloatable(true);
m_leftToolBar->setMovable(true); m_leftToolBar->setMovable(true);
m_leftToolBar->setOrientation(Qt::Horizontal); m_leftToolBar->setOrientation(Qt::Horizontal);
auto horizontalLayout = new QHBoxLayout(this); auto horizontalLayout = new QHBoxLayout(this);
horizontalLayout->setContentsMargins(9, 5, 9, 5); horizontalLayout->setContentsMargins(0, 0, 0, 0);
horizontalLayout->setSpacing(0); horizontalLayout->setSpacing(0);
setFixedHeight(Theme::toolbarSize()); setFixedHeight(Theme::toolbarSize());
m_leftToolBar->setProperty("panelwidget", false); m_leftToolBar->setProperty("panelwidget", false);
m_leftToolBar->setProperty("panelwidget_singlerow", false); m_leftToolBar->setProperty("panelwidget_singlerow", false);
m_leftToolBar->setFixedHeight(Theme::toolbarSize());
m_rightToolBar->setProperty("panelwidget", false); m_rightToolBar->setProperty("panelwidget", false);
m_rightToolBar->setProperty("panelwidget_singlerow", false); m_rightToolBar->setProperty("panelwidget_singlerow", false);
m_rightToolBar->setFixedHeight(Theme::toolbarSize());
m_rightToolBar->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Expanding); m_rightToolBar->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Expanding);
auto stretchToolbar = new QToolBar(this); auto stretchToolbar = new QToolBar(this);