summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/private/qquickstyleitem.cpp5
-rw-r--r--src/styles/Desktop/ToolBarStyle.qml2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/private/qquickstyleitem.cpp b/src/private/qquickstyleitem.cpp
index f9809155..b8edbd2d 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 56dfbce3..c295f731 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}