mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-01 21:05:20 -05:00
Replaced QColor::light by QColor::lighter and QColor::dark by QColor::darker
This commit is contained in:
parent
c9e8ac4c3c
commit
9816be4b53
2 changed files with 4 additions and 4 deletions
|
|
@ -810,11 +810,11 @@ void TBoard::drawSquare(QPainter &painter, int x, int y, TPiece::Shape shape) {
|
|||
QColor color = colorTable[int(shape)];
|
||||
painter.fillRect(x + 1, y + 1, squareWidth() - 2, squareHeight() - 2, color);
|
||||
|
||||
painter.setPen(color.light());
|
||||
painter.setPen(color.lighter());
|
||||
painter.drawLine(x, y + squareHeight() - 1, x, y);
|
||||
painter.drawLine(x, y, x + squareWidth() - 1, y);
|
||||
|
||||
painter.setPen(color.dark());
|
||||
painter.setPen(color.darker());
|
||||
painter.drawLine(x + 1, y + squareHeight() - 1, x + squareWidth() - 1, y + squareHeight() - 1);
|
||||
painter.drawLine(x + squareWidth() - 1, y + squareHeight() - 1, x + squareWidth() - 1, y + 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,11 +108,11 @@ void PreviewView::paintPage(QPainter *painter, int page)
|
|||
painter->drawRect(QRectF(QPointF(0, 0), printPreview->paperSize));
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
|
||||
col = col.light();
|
||||
col = col.lighter();
|
||||
painter->drawLine(QLineF(printPreview->paperSize.width(), 1,
|
||||
printPreview->paperSize.width(), printPreview->paperSize.height() - 1));
|
||||
|
||||
col = col.light();
|
||||
col = col.lighter();
|
||||
painter->drawLine(QLineF(printPreview->paperSize.width(), 2,
|
||||
printPreview->paperSize.width(), printPreview->paperSize.height() - 2));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue