UI: 将棋盘线条改为耐火砖红色并将阴影改为透明
This commit is contained in:
parent
6d056a0340
commit
38f6eae150
|
@ -93,7 +93,9 @@ void BoardItem::paint(QPainter *painter,
|
|||
|
||||
// 填充阴影
|
||||
#ifndef MOBILE_APP_UI
|
||||
painter->fillRect(boundingRect(), QBrush(QColor(64, 64, 64)));
|
||||
QColor shadowColor(128, 42, 42);
|
||||
shadowColor.setAlphaF(0.3);
|
||||
painter->fillRect(boundingRect(), QBrush(shadowColor));
|
||||
#endif /* ! MOBILE_APP_UI */
|
||||
|
||||
// 填充图片
|
||||
|
@ -106,11 +108,11 @@ void BoardItem::paint(QPainter *painter,
|
|||
QPixmap(":/image/resources/image/board.png"));
|
||||
#endif /* MOBILE_APP_UI */
|
||||
|
||||
// 黑色实线画笔
|
||||
// 实线画笔
|
||||
#ifdef MOBILE_APP_UI
|
||||
QPen pen(QBrush(QColor(241, 156, 159)), LINE_WEIGHT, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin);
|
||||
#else
|
||||
QPen pen(QBrush(Qt::black), LINE_WEIGHT, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin);
|
||||
QPen pen(QBrush(QColor(178, 34, 34)), LINE_WEIGHT, Qt::SolidLine, Qt::SquareCap, Qt::BevelJoin);
|
||||
#endif
|
||||
painter->setPen(pen);
|
||||
|
||||
|
|
|
@ -67,8 +67,9 @@ PieceItem::PieceItem(QGraphicsItem *parent) :
|
|||
chooseLineColor = Qt::darkYellow;
|
||||
#endif /* MOBILE_APP_UI */
|
||||
|
||||
// 删除线为橘红色
|
||||
removeLineColor = QColor(0xff, 0x75, 0);
|
||||
// 删除线颜色
|
||||
removeLineColor = QColor(227, 23, 13);
|
||||
removeLineColor.setAlphaF(0.9);
|
||||
}
|
||||
|
||||
PieceItem::~PieceItem() = default;
|
||||
|
|
Loading…
Reference in New Issue