From f6dd0d970f736e14c334f460166e660056ee74c8 Mon Sep 17 00:00:00 2001 From: mawei Date: Mon, 29 Jun 2026 08:52:07 +0800 Subject: [PATCH] =?UTF-8?q?home:=20add=20'=E5=9F=BA=E4=BA=8E=20DragonPilot?= =?UTF-8?q?=20=E6=B7=B1=E5=BA=A6=E5=AE=9A=E5=88=B6'=20attribution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/ui/widgets/setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/selfdrive/ui/widgets/setup.py b/selfdrive/ui/widgets/setup.py index a96439d66..5c55cc9b5 100644 --- a/selfdrive/ui/widgets/setup.py +++ b/selfdrive/ui/widgets/setup.py @@ -49,6 +49,13 @@ class SetupWidget(Widget): sep_w = 280 rl.draw_rectangle(int(x_center - sep_w / 2), int(sep_y), sep_w, 2, SEPARATOR) + # DragonPilot attribution + normal_font = gui_app.font(FontWeight.NORMAL) + attr = tr("基于 DragonPilot 深度定制") + attr_size = 36 + attr_measure = rl.measure_text_ex(normal_font, attr, attr_size, 0) + rl.draw_text_ex(normal_font, attr, rl.Vector2(x_center - attr_measure.x / 2, sep_y + 22), attr_size, 0, rl.Color(160, 165, 180, 255)) + # === Bottom section: safety notice === warn = tr("这不是自动驾驶,请注意行车安全") warn_size = 68