From 56a0c4e0d9b932aad94228960842b3f4daf116e5 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Sat, 23 May 2026 13:24:40 -0400 Subject: [PATCH] BigUI WIP: Center Bar --- selfdrive/ui/onroad/starpilot/starpilot_onroad_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/onroad/starpilot/starpilot_onroad_view.py b/selfdrive/ui/onroad/starpilot/starpilot_onroad_view.py index 9b244014f..250bda2f0 100644 --- a/selfdrive/ui/onroad/starpilot/starpilot_onroad_view.py +++ b/selfdrive/ui/onroad/starpilot/starpilot_onroad_view.py @@ -132,8 +132,8 @@ class StarPilotOnroadView(AugmentedRoadView): pad_x, pad_y = 28, 18 box_w = int(text_size.x + pad_x * 2) box_h = int(text_size.y + pad_y * 2) - x = int((gui_app.width - box_w) / 2) - y = int(gui_app.height - box_h - 22) + x = int(self._content_rect.x + (self._content_rect.width - box_w) / 2) + y = int(self._content_rect.y + self._content_rect.height - box_h - 22) rect = rl.Rectangle(x, y, box_w, box_h) rl.draw_rectangle_rounded(rect, 0.35, 10, rl.Color(0, 0, 0, 166))