Show lead info above the Large UI lead marker

This commit is contained in:
firestarsdog
2026-11-13 17:59:50 -05:00
parent 69667edae6
commit 9cea3a32eb
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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",
}
+3 -1
View File
@@ -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)