mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Lint.
This commit is contained in:
parent
6425238670
commit
46acfca790
1 changed files with 2 additions and 2 deletions
|
|
@ -18,13 +18,13 @@ void BackgroundPlateWidget::paintEvent(QPaintEvent *event)
|
||||||
|
|
||||||
// Set the background color to semi-transparent black with rounded corners
|
// Set the background color to semi-transparent black with rounded corners
|
||||||
QRect rect = this->rect();
|
QRect rect = this->rect();
|
||||||
painter.setPen(Qt::NoPen); // No border
|
painter.setPen(Qt::NoPen); // No border
|
||||||
if (focused) {
|
if (focused) {
|
||||||
painter.setBrush(QColor(85, 190, 75, 140));
|
painter.setBrush(QColor(85, 190, 75, 140));
|
||||||
} else {
|
} else {
|
||||||
painter.setBrush(QColor(0, 0, 0, 140)); // semi-transparent black
|
painter.setBrush(QColor(0, 0, 0, 140)); // semi-transparent black
|
||||||
}
|
}
|
||||||
painter.drawRoundedRect(rect, 6, 6); // rounded corners
|
painter.drawRoundedRect(rect, 6, 6); // rounded corners
|
||||||
}
|
}
|
||||||
|
|
||||||
void BackgroundPlateWidget::setFocused(bool _focused)
|
void BackgroundPlateWidget::setFocused(bool _focused)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue