mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Updated UI features
+ Added a fade to inactive players TableZone + Refreshed TableZone, HandZone and DeckView default background colors
This commit is contained in:
parent
2a15b9c95a
commit
a1c013a893
4 changed files with 216 additions and 59 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue