From d0e21fc6c859bb213e7aab597e365ee38c8e85dd Mon Sep 17 00:00:00 2001 From: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com> Date: Wed, 15 Mar 2023 23:22:10 -0400 Subject: [PATCH] ui: shorter inner radius in corners (#54) --- selfdrive/ui/qt/onroad.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index ca3475b4a8..eed6c2cc77 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -551,7 +551,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { QRect headerRect(0, 0, width(), header_h); QPainterPath headerPath; - headerPath.addRoundedRect(headerRect, 40, 40); + headerPath.addRoundedRect(headerRect, 30, 30); p.fillPath(headerPath, bg); QString speedLimitStr = (speedLimit > 1) ? QString::number(std::nearbyint(speedLimit)) : "–"; @@ -1626,7 +1626,7 @@ void AnnotatedCameraWidget::paintEvent(QPaintEvent *event) { // Create a QPainterPath with rounded corners QPainterPath path; - int radius = 40; + int radius = 30; int width = CameraWidget::width(); int height = CameraWidget::height(); path.addRoundedRect(0, 0, width, height, radius, radius);