Commit 3df7a2c3 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix overlapping alpha values in expander area

There are platform differences when drawing overlapping alpha
rects here. The workaround was to simply avoid using alpha
values for now.
parent e083ad29
......@@ -2257,13 +2257,17 @@ static void drawRectBox(QPainter *painter, const QRect &rect, bool start, bool e
painter->setRenderHint(QPainter::Antialiasing, false);
QColor c = pal.highlight().color();
QRgb b = pal.base().color().rgb();
QRgb h = pal.highlight().color().rgb();
QColor c = QColor((qRed(b)*2+qRed(h))/3,
QLinearGradient grad(rect.topLeft(), rect.topRight());
grad.setColorAt(0, c.darker(130));
grad.setColorAt(0, c.lighter(110));
grad.setColorAt(1, c.lighter(160));
QColor outline = c.darker(110);
QColor outline = c;
QRect r = rect;
painter->fillRect(rect, grad);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment