forked from qt-creator/qt-creator
Move status bar gradient to helper function.
Change-Id: I803f354f1efb0f3c79e7e9ee61fb50d3d5f71363 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
@@ -496,5 +496,14 @@ void StyleHelper::tintImage(QImage &img, const QColor &tintColor)
|
||||
}
|
||||
}
|
||||
|
||||
QLinearGradient StyleHelper::statusBarGradient(const QRect &statusBarRect)
|
||||
{
|
||||
QLinearGradient grad(statusBarRect.topLeft(), QPoint(statusBarRect.center().x(), statusBarRect.bottom()));
|
||||
QColor startColor = shadowColor().darker(164);
|
||||
QColor endColor = baseColor().darker(130);
|
||||
grad.setColorAt(0, startColor);
|
||||
grad.setColorAt(1, endColor);
|
||||
return grad;
|
||||
}
|
||||
|
||||
} // namespace Utils
|
||||
|
Reference in New Issue
Block a user