This commit is contained in:
Brübach, Lukas 2025-11-29 21:44:36 +01:00
parent 6425238670
commit 46acfca790

View file

@ -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)