mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-25 22:52:07 +08:00
UI/MapETA: Increased contrast of widget texts for better readability (#30952)
old-commit-hash: db3ef3e1d8
This commit is contained in:
@@ -20,7 +20,7 @@ void MapETA::paintEvent(QPaintEvent *event) {
|
||||
QPainter p(this);
|
||||
p.setRenderHint(QPainter::Antialiasing);
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(QColor(0, 0, 0, 150));
|
||||
p.setBrush(QColor(0, 0, 0, 255));
|
||||
QSizeF txt_size = eta_doc.size();
|
||||
p.drawRoundedRect((width() - txt_size.width()) / 2 - UI_BORDER_SIZE, 0, txt_size.width() + UI_BORDER_SIZE * 2, height() + 25, 25, 25);
|
||||
p.translate((width() - txt_size.width()) / 2, (height() - txt_size.height()) / 2);
|
||||
|
||||
Reference in New Issue
Block a user