forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user