From 9cea3a32ebc705f182fabffffcd24d8ee1a2c136 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Fri, 13 Nov 2026 17:59:50 -0500 Subject: [PATCH] Show lead info above the Large UI lead marker --- openpilot/starpilot/galaxy/onroad_layout.py | 2 +- openpilot/starpilot/ui/runtime_app.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/galaxy/onroad_layout.py b/openpilot/starpilot/galaxy/onroad_layout.py index 82a08bb2d0..ad1b4ccaa5 100644 --- a/openpilot/starpilot/galaxy/onroad_layout.py +++ b/openpilot/starpilot/galaxy/onroad_layout.py @@ -18,7 +18,7 @@ from openpilot.starpilot.galaxy.setting_descriptions import description DISPLAY_GROUPS = { "DeveloperSidebar": "Big layout", "ShowBrakeStatus": "widget", "StockConfidenceBallWidget": "widget", - "HideLeadMarker": "Lead car (Small layout)", "LeadInfo": "Lead car (Small layout)", + "HideLeadMarker": "Lead car", "LeadInfo": "Lead car", "CameraView": "Camera (Small layout)", "DriverCamera": "Camera (Small layout)", "HidePersonalityAlerts": "Alerts and borders", "SignalMetrics": "Alerts and borders", "BlindSpotMetrics": "Alerts and borders", } diff --git a/openpilot/starpilot/ui/runtime_app.py b/openpilot/starpilot/ui/runtime_app.py index 1048230df2..58ee9df886 100644 --- a/openpilot/starpilot/ui/runtime_app.py +++ b/openpilot/starpilot/ui/runtime_app.py @@ -184,7 +184,9 @@ class StarShellSession: else: camera_owner.render_camera_model_layer(rect, camera_view=state.appearance.camera_view, reverse_driver=state.reverse_driver_camera, - road_style=state.customization["roadColors"]["large"]) + road_style=state.customization["roadColors"]["large"], + lead_display=(True, int(state.appearance.lead_info_mode), state.appearance.lead_info_metric) + if state.appearance.lead_info_mode else None) self.view = ShellView(self.fonts, Path(__file__).parents[2] / "selfdrive/assets", camera_layer=camera_layer, pip_layer=self._render_pip)