diff --git a/src/private/qquickstyleitem.cpp b/src/private/qquickstyleitem.cpp index f9809155f63acc8c731ebe484bab4cc8dab0bbfd..b8edbd2df8a1d1e73b4c13f07bc7c335999c8e7a 100644 --- a/src/private/qquickstyleitem.cpp +++ b/src/private/qquickstyleitem.cpp @@ -1371,8 +1371,11 @@ void QQuickStyleItem::paint(QPainter *painter) case ToolBar: painter->fillRect(m_styleoption->rect, m_styleoption->palette.window().color()); qApp->style()->drawControl(QStyle::CE_ToolBar, m_styleoption, painter); - painter->setPen(m_styleoption->palette.dark().color().darker(120)); + painter->save(); + painter->setPen(style() != "fusion" ? m_styleoption->palette.dark().color().darker(120) : + m_styleoption->palette.window().color().lighter(107)); painter->drawLine(m_styleoption->rect.bottomLeft(), m_styleoption->rect.bottomRight()); + painter->restore(); break; case StatusBar: #ifdef Q_OS_MAC diff --git a/src/styles/Desktop/ToolBarStyle.qml b/src/styles/Desktop/ToolBarStyle.qml index 56dfbce38a37f961afef9c3ba06729a734721e86..c295f7310275fd1c4cc253fb6948e1a884773889 100644 --- a/src/styles/Desktop/ToolBarStyle.qml +++ b/src/styles/Desktop/ToolBarStyle.qml @@ -51,7 +51,7 @@ Style { padding.left: 6 padding.right: 6 padding.top: 1 - padding.bottom: style.style == "mac" ? 1 : 2 + padding.bottom: style.style === "mac" ? 1 : style.style === "fusion" ? 3 : 2 StyleItem { id: style ; visible: false}