Commit 528f0223 authored by Julien Wintz's avatar Julien Wintz
Browse files

No more gradient in widgets tag view list delegates.

parent 59d7c63b
......@@ -217,12 +217,7 @@ void dtkWidgetsTagCloudListLightDelegate::paint(QPainter *painter, const QStyleO
if (!item)
return;
QLinearGradient gradiant(option.rect.left(), option.rect.top(), option.rect.left(), option.rect.bottom());
gradiant.setColorAt(0.0, QColor(247, 247, 247));
gradiant.setColorAt(0.3, QColor(240, 240, 240));
gradiant.setColorAt(1.0, QColor(220, 220, 220));
painter->fillRect(option.rect, gradiant);
painter->fillRect(option.rect, QColor(220, 220, 220));
painter->setPen(Qt::white);
painter->drawLine(option.rect.topLeft() + QPoint(0, 1), option.rect.topRight() + QPoint(0, 1));
......@@ -287,13 +282,7 @@ void dtkWidgetsTagCloudListDarkDelegate::paint(QPainter *painter, const QStyleOp
if (!item)
return;
QLinearGradient gradiant(option.rect.left(), option.rect.top(), option.rect.left(), option.rect.bottom());
gradiant.setColorAt(0.0, QColor(047, 047, 047));
gradiant.setColorAt(0.3, QColor(040, 040, 040));
gradiant.setColorAt(1.0, QColor(020, 020, 020));
painter->fillRect(option.rect, gradiant);
painter->fillRect(option.rect, QColor(020, 020, 020));
painter->setPen(QColor(055, 055, 055));
painter->drawLine(option.rect.topLeft() + QPoint(0, 1), option.rect.topRight() + QPoint(0, 1));
......@@ -358,7 +347,6 @@ void dtkWidgetsTagCloudListDoomDelegate::paint(QPainter *painter, const QStyleOp
return;
painter->fillRect(option.rect, QColor("#282C34"));
painter->setPen(QColor(055, 055, 055));
painter->drawLine(option.rect.topLeft() + QPoint(0, 1), option.rect.topRight() + QPoint(0, 1));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment