From de73a6d6dd7bad5ffeae224f41bc8dd6bfaa96d3 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Mon, 21 Sep 2009 10:57:07 +0200 Subject: [PATCH] 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 --- src/libs/utils/stylehelper.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp index 741486e89f6..22ffa7e248e 100644 --- a/src/libs/utils/stylehelper.cpp +++ b/src/libs/utils/stylehelper.cpp @@ -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); -- GitLab