Improved appearance of mac toolbar handles
The old ones were too heavy and cluttered to fit on mac. Change-Id: I5d9f1a8801992026af65af4c6b2aeae3a03a9f5c Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
99b032e132
commit
7b5ee9cb80
@ -2960,16 +2960,16 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
|
|||||||
p->save();
|
p->save();
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
int x = opt->rect.x() + 6;
|
int x = opt->rect.x() + 6;
|
||||||
int y = opt->rect.y() + 5;
|
int y = opt->rect.y() + 7;
|
||||||
static const int RectHeight = 2;
|
static const int RectHeight = 2;
|
||||||
if (opt->state & State_Horizontal) {
|
if (opt->state & State_Horizontal) {
|
||||||
while (y < opt->rect.height() - RectHeight - 6) {
|
while (y < opt->rect.height() - RectHeight - 5) {
|
||||||
path.moveTo(x, y);
|
path.moveTo(x, y);
|
||||||
path.addRect(x, y, RectHeight, RectHeight);
|
path.addRect(x, y, RectHeight, RectHeight);
|
||||||
y += 6;
|
y += 6;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while (x < opt->rect.width() - RectHeight - 6) {
|
while (x < opt->rect.width() - RectHeight - 5) {
|
||||||
path.moveTo(x, y);
|
path.moveTo(x, y);
|
||||||
path.addRect(x, y, RectHeight, RectHeight);
|
path.addRect(x, y, RectHeight, RectHeight);
|
||||||
x += 6;
|
x += 6;
|
||||||
@ -2981,12 +2981,6 @@ void QMacStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPai
|
|||||||
QColor light = opt->palette.light().color();
|
QColor light = opt->palette.light().color();
|
||||||
light.setAlphaF(0.6);
|
light.setAlphaF(0.6);
|
||||||
p->fillPath(path, light);
|
p->fillPath(path, light);
|
||||||
p->save();
|
|
||||||
p->translate(1, 1);
|
|
||||||
p->fillPath(path, dark);
|
|
||||||
p->restore();
|
|
||||||
p->translate(3, 3);
|
|
||||||
p->fillPath(path, light);
|
|
||||||
p->translate(1, 1);
|
p->translate(1, 1);
|
||||||
p->fillPath(path, dark);
|
p->fillPath(path, dark);
|
||||||
p->restore();
|
p->restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user