diff options
| author | con <[email protected]> | 2009-09-21 10:57:07 +0200 |
|---|---|---|
| committer | con <[email protected]> | 2009-09-21 10:57:26 +0200 |
| commit | de73a6d6dd7bad5ffeae224f41bc8dd6bfaa96d3 (patch) | |
| tree | f8c0e1e5dcf30d6af63dfa3bb891a5e1dd2af142 /src/libs | |
| parent | d499e95e1b7c65ca4b4e04852ba417922e3dc1f8 (diff) | |
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
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/utils/stylehelper.cpp | 7 |
1 files 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); |
