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:
@@ -518,12 +518,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
|
||||
case PE_PanelStatusBar:
|
||||
{
|
||||
painter->save();
|
||||
QLinearGradient grad(option->rect.topLeft(), QPoint(rect.center().x(), rect.bottom()));
|
||||
QColor startColor = Utils::StyleHelper::shadowColor().darker(164);
|
||||
QColor endColor = Utils::StyleHelper::baseColor().darker(130);
|
||||
grad.setColorAt(0, startColor);
|
||||
grad.setColorAt(1, endColor);
|
||||
painter->fillRect(option->rect, grad);
|
||||
QLinearGradient grad = Utils::StyleHelper::statusBarGradient(rect);
|
||||
painter->fillRect(rect, grad);
|
||||
painter->setPen(QColor(255, 255, 255, 60));
|
||||
painter->drawLine(rect.topLeft() + QPoint(0,1),
|
||||
rect.topRight()+ QPoint(0,1));
|
||||
|
||||
Reference in New Issue
Block a user