From 0078eb477cb42fc4874fe26cdbb65131af4c6277 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Wed, 29 Jul 2026 00:18:36 -0400 Subject: [PATCH] SLC Sources Bubble Size + DASH -> Dash --- selfdrive/ui/onroad/starpilot/slc_speed_limit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/onroad/starpilot/slc_speed_limit.py b/selfdrive/ui/onroad/starpilot/slc_speed_limit.py index 958c041b06..ce5914f5e8 100644 --- a/selfdrive/ui/onroad/starpilot/slc_speed_limit.py +++ b/selfdrive/ui/onroad/starpilot/slc_speed_limit.py @@ -353,8 +353,8 @@ def _draw_sign(state: dict, rect: rl.Rectangle, *, pending: bool = False): # ── Active Source Label (single-line mode when sources panel is off) ── -_SOURCE_ABBREV = {"Dashboard": "DASH", "Map Data": "MAPS", "Vision": "VISION", - "Mapbox": "MAPBOX", "Upcoming": "NEXT"} +_SOURCE_ABBREV = {"Dashboard": "Dash", "Map Data": "Maps", "Vision": "Vision", + "Mapbox": "Mapbox", "Upcoming": "Next"} def _draw_active_source_label(state: dict, cx: float, bottom_y: float, sign_width: float, expanded: bool = False) -> Optional[rl.Rectangle]: """Draw the single active-source pill below the sign. Returns pill rect for hit-testing.""" @@ -373,7 +373,7 @@ def _draw_active_source_label(state: dict, cx: float, bottom_y: float, sign_widt rl.draw_rectangle_rounded(rect, 0.4, 8, rl.Color(0, 0, 0, 180)) rl.draw_rectangle_rounded_lines_ex(rect, 0.4, 8, 1, rl.Color(255, 255, 255, 100)) - text_y = bottom_y + 8 + (pill_h - font_size) / 2 + text_y = rect.y + (pill_h - sz.y) / 2 rl.draw_text_ex(font, label, rl.Vector2(cx - sz.x / 2, text_y), font_size, 0, rl.WHITE) return rect @@ -413,7 +413,7 @@ def _draw_sources_bubble(state: dict, anchor_rect: rl.Rectangle, sign_rect: rl.R return bubble_w = sign_rect.width + 24 - bubble_h = sign_rect.height + bubble_h = sign_rect.height + 40 bubble_x = sign_rect.x + sign_rect.width + 12 bubble_y = sign_rect.y