From 38f6eae150d14fd3b1d58865178be2105c192e05 Mon Sep 17 00:00:00 2001 From: Calcitem Team Date: Sun, 1 Sep 2019 23:55:34 +0800 Subject: [PATCH] =?UTF-8?q?UI:=20=E5=B0=86=E6=A3=8B=E7=9B=98=E7=BA=BF?= =?UTF-8?q?=E6=9D=A1=E6=94=B9=E4=B8=BA=E8=80=90=E7=81=AB=E7=A0=96=E7=BA=A2?= =?UTF-8?q?=E8=89=B2=E5=B9=B6=E5=B0=86=E9=98=B4=E5=BD=B1=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E9=80=8F=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NineChess/src/boarditem.cpp | 8 +++++--- NineChess/src/pieceitem.cpp | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/NineChess/src/boarditem.cpp b/NineChess/src/boarditem.cpp index 90eb4136..d8f6c0dc 100644 --- a/NineChess/src/boarditem.cpp +++ b/NineChess/src/boarditem.cpp @@ -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); diff --git a/NineChess/src/pieceitem.cpp b/NineChess/src/pieceitem.cpp index 5408b6e2..b8317451 100644 --- a/NineChess/src/pieceitem.cpp +++ b/NineChess/src/pieceitem.cpp @@ -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;