Updated UI features

+ Added a fade to inactive players TableZone
+ Refreshed TableZone, HandZone and DeckView  default background colors
This commit is contained in:
Matt Lowe 2014-10-14 22:39:22 +02:00
parent 2a15b9c95a
commit a1c013a893
4 changed files with 216 additions and 59 deletions

View file

@ -146,8 +146,17 @@ void DeckViewCardContainer::paint(QPainter *painter, const QStyleOptionGraphicsI
{
qreal totalTextWidth = getCardTypeTextWidth();
if (bgPixmap.isNull())
painter->fillRect(boundingRect(), QColor(0, 0, 100));
if (bgPixmap.isNull()) {
//painter->fillRect(boundingRect(), QColor(70, 50, 100));
QLinearGradient grad1(0, 0, 1, 0);
grad1.setCoordinateMode(QGradient::ObjectBoundingMode);
grad1.setColorAt(0, QColor(70, 50, 100));
grad1.setColorAt(1, QColor(170, 150, 200));
painter->fillRect(QRectF(0, 0, width, height), QBrush(grad1));
painter->fillRect(boundingRect(), QColor(0, 0, 0, 80));
}
else
painter->fillRect(boundingRect(), QBrush(bgPixmap));
painter->setPen(QColor(255, 255, 255, 100));