summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-12-16 22:49:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-11 22:13:19 +0100
commit459ad9e018071cdf613d3deb70ea4d96178ca683 (patch)
tree56a1ee9cb632dcbece9ea90e165dc0fadd83da57
parentcd5ae8fb21c2e44083f0b8ba85ef8d620803c934 (diff)
Mac: Update PE_IndicatorToolBarHandle drawing.
Smaller, rounder, darker toolbar handles. Works especially well in unified toolbar mode. Task-number: QTBUG-34411 Change-Id: I41eafdf0bb1dbbb4ed96d7bd799eb6f53bccbf7d Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r--src/widgets/styles/qmacstyle_mac.mm12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm
index 5db4801c37..93a72980c9 100644
--- a/src/widgets/styles/qmacstyle_mac.mm
+++ b/src/widgets/styles/qmacstyle_mac.mm
@@ -3008,23 +3008,19 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
if (opt->state & State_Horizontal) {
while (y < opt->rect.height() - RectHeight - 5) {
path.moveTo(x, y);
- path.addRect(x, y, RectHeight, RectHeight);
+ path.addEllipse(x, y, RectHeight, RectHeight);
y += 6;
}
} else {
while (x < opt->rect.width() - RectHeight - 5) {
path.moveTo(x, y);
- path.addRect(x, y, RectHeight, RectHeight);
+ path.addEllipse(x, y, RectHeight, RectHeight);
x += 6;
}
}
p->setPen(Qt::NoPen);
- QColor dark = opt->palette.dark().color();
- dark.setAlphaF(0.75);
- QColor light = opt->palette.light().color();
- light.setAlphaF(0.6);
- p->fillPath(path, light);
- p->translate(1, 1);
+ QColor dark = opt->palette.dark().color().darker();
+ dark.setAlphaF(0.50);
p->fillPath(path, dark);
p->restore();