Commit de73a6d6 authored by con's avatar con
Browse files

Remove funny highlight for the find tool bar.

Basically for all widgets that don't have navigationWidgetHeight
it is removed, because then the proportions are wrong.

Reviewed-by: Erik Verbruggen
parent d499e95e
......@@ -176,10 +176,11 @@ void StyleHelper::horizontalGradient(QPainter *painter, const QRect &spanRect, c
QColor base = StyleHelper::baseColor();
QLinearGradient grad(rect.topLeft(), rect.bottomLeft());
grad.setColorAt(0, highlightColor().lighter(120));
grad.setColorAt(0.4, highlightColor());
grad.setColorAt(0.401, base);
if (rect.height() == navigationWidgetHeight()) {
grad.setColorAt(0.4, highlightColor());
grad.setColorAt(0.401, base);
}
grad.setColorAt(1, shadowColor());
p->fillRect(rect, grad);
......
Markdown is supported
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