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