From 59d951ea3226a5fda87d7ae1478f0d1bf520f09c Mon Sep 17 00:00:00 2001 From: mawei Date: Wed, 3 Jun 2026 20:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=9D=A2=E6=9D=BF=E4=B8=BB?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=AD=97=E5=8F=B7=E5=8A=A0=E5=A4=A7=E5=88=B0?= =?UTF-8?q?85px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/ui/layouts/settings/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/layouts/settings/settings.py b/selfdrive/ui/layouts/settings/settings.py index e2a12f5e..a0c32672 100644 --- a/selfdrive/ui/layouts/settings/settings.py +++ b/selfdrive/ui/layouts/settings/settings.py @@ -124,11 +124,11 @@ class SettingsLayout(Widget): text_color = TEXT_SELECTED if is_selected else TEXT_NORMAL # Draw button text (right-aligned) panel_name = tr(panel_info.name) - text_size = measure_text_cached(self._font_medium, panel_name, 65) + text_size = measure_text_cached(self._font_medium, panel_name, 85) text_pos = rl.Vector2( button_rect.x + button_rect.width - text_size.x, button_rect.y + (button_rect.height - text_size.y) / 2 ) - rl.draw_text_ex(self._font_medium, panel_name, text_pos, 65, 0, text_color) + rl.draw_text_ex(self._font_medium, panel_name, text_pos, 85, 0, text_color) # Store button rect for click detection panel_info.button_rect = button_rect